[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Linux name resolution problem

Asked by david-marti in Linux Networking, Domain Name Service (DNS), SuSE Linux

Tags: Linux dns

Hi experts,

I have a Linux box (SUSE Enterprise Server 10 SP1) with an strange problem:

If I exec the command "ping name.test.local" the result is unknown host. (This is the problem).
If I exec the command "host name.test.local" the result is the correct IP address.
If I exec the command "nslookup name.test.local" the result is the correct IP address.

If I exec the command "ping www.google.com" the result is a correct ping to the IP address.

So, why can fail the first ping command?

My /etc/resolv.conf is

search test.local
nameserver 192.168.10.1

If I put the "name.test.local" on /etc/host file, the ping works.

On my /etc/nsswitch.conf, the "host" line is "files dns".

I put wireshark on my DNS server to see if the query for "name.test.local" reach this server when the command "ping name.test.local" is issued, and the query is not received.

All seems to be configured correctly.

Any help will be apprecied.

Thanks in advance.
[+][-]10/28/09 04:55 AM, ID: 25682200Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/28/09 01:31 PM, ID: 25687952Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/30/09 12:10 PM, ID: 25705966Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625