I need some help about pinging hostnames.
We have a windows domain and now i installed a Suse 11.0 pc that i want to connect to the domain.
Everything seems to be alright but pinging to the server name doesn’t work.
pining the ip adres is not a problem/
Also if i add the name to the host file there is no problem.
What am i doing wrong here.
Am a newbie for Linux so don’t know much.
Dig [servername] gives me a good answer (the ip address etc).
Nslookup [servername] gives me a SERVFAIL.
Nslookup [servername].[domainname].local gives me also a good answer.
Do i have to add .local to the search domain option in resolv.conf?
Welcome to Linux, though this issue is not Linux specific. The problem
had to do entirely with DNS. So, first, how did your Linux box get its
DNS settings? As it has a static IP address I assume you provided those
as well and there is another field in there you need to review called
the ‘domain name’ (after the hostname) and the ‘Domain Search’. Go into yast lan and be sure these are setup to the same domain name that your
domain uses (visible at the top of Active Directory Users and Computers
on the windows box). Also microsoft active directory (MAD) is extremely
dependent on DNS to work at all so your domain controller (DC) is a DNS
server in all likelihood or is pointing to one. Generally, as it
probably is a DNS server, configure your workstations to point to the DC
for DNS resolution so on the same screen as the options above be SURE
you put in the DC as the first DNS server (‘Name Server 1’).
So now that we’ve configured DNS you should be able to ping by hostname
alone. Your box doesn’t know hostnames off the top of its head so it
will try to append the DNS suffix and will end up with
hostname.yourdomain.tld and that, if things are setup properly in DNS,
should work. This also assume, of course, that MAD is configured to
assign hostnames properly to all the hosts in the network.
So in the end you have a DNS problem. . Be sure your workstation’s DNS
is setup to point to a DNS server that CAN ping by just the short
hostname. A simple test is to try the same pinging or nslookup command
on the MAD DC. If it doesn’t work there then that system is not goiing
to be a worthwhile DNS server after all and you’ll need to find one that is.
> Hello all
> I need some help about pinging hostnames.
> We have a windows domain and now i installed a Suse 11.0 pc that i want
> to connect to the domain.
> Everything seems to be alright but pinging to the server name doesn’t
> pining the ip adres is not a problem/
> Also if i add the name to the host file there is no problem.
> What am i doing wrong here.
> Am a newbie for Linux so don’t know much.
> Dig [servername] gives me a good answer (the ip address etc).
> Nslookup [servername] gives me a SERVFAIL.
> Nslookup [servername].[domainname].local gives me also a good answer.
> Do i have to add .local to the search domain option in resolv.conf?
> Please help me out with this.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
Maybe i didn’t give enough information but…
The Suse pc has the right dns settings.
I gave it in Yast the exact settings as other pc’s in the Active Directory.
So it has a static ip address with the right primary dns and the right secundary dns.
It also has the right gateway etc.
As i said, everything seems to be alright, the only thing that is not working is pinging by hostname.
We are already working some years with these settings and ther never was a problem (windows only).
The both dns servers are working properly and the pc’s get the right ip adresses and gateway etc.
Now i installed Suse and that is the only machine that is not working properly with hostnames.
So, pinging ip adresses is working fine and dig etc. is also working fine. The only problem is a ping on hostname.