LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 04-13-2007, 10:35 AM   #1
cricketjeff
LQ Newbie
 
Registered: Apr 2007
Distribution: debian etch and many others
Posts: 3

Rep: Reputation: 0
problem resolving .local domains


I have just configured a new Debian Etch machine on our office network and all is ticketyboo as I expected except...

jeff-debian:/var/log# ping shakira.aspire.local
ping: unknown host shakira.aspire.local
jeff-debian:/var/log# host shakira.aspire.local
shakira.aspire.local has address 192.168.0.117

all usual apps work like ping and fail to find any of the local machines with .local addresses but find the same machines fine if I define a fictitious .com domain on the same (admittedly horrible windows2003) dns server. Windows boxes and ubuntu boxes find .local machines as they should. This is a new on on me, anyone any clues?
 
Old 04-14-2007, 08:51 AM   #2
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
That is...odd. Did you confirm that this box is using the same DNS resolver as the Windows and Ubuntu boxes?

What response do you get from
Code:
dig any aspire.local
Is it any different than
Code:
dig any aspire.local @<ip_address_of_Win2K3_dns>
Any difference than the same query run from the Windows and Ubuntu boxes? And all the same questions when you specify shakira.aspire.local.

Hopefully that will cough up a hint.
 
Old 04-15-2007, 05:36 AM   #3
cricketjeff
LQ Newbie
 
Registered: Apr 2007
Distribution: debian etch and many others
Posts: 3

Original Poster
Rep: Reputation: 0
No point posting all possible digs because the answers are too similar, diffs of the output on the ubuntu and debian boxes reveal that dig puts more spaces in some lines on ubuntu and that the query numbers and times are different, but the information is identical. Also that the answers are essentially identical whether or not the dns server is specified, and even if I specify the alternate windows dns server.

for digging the general and specific requests the digs are as follows:-


; <<>> DiG 9.3.4 <<>> any aspire.local
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51176
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2

;; QUESTION SECTION:
;aspire.local. IN ANY

;; ANSWER SECTION:
aspire.local. 3600 IN NS alima.jobsgopublic.local.
aspire.local. 3600 IN NS grp-svr-02.jobsgopublic.local.
aspire.local. 3600 IN SOA grp-svr-02.jobsgopublic.local. hostmaster.jobsgopublic.local. 80 900 600 86400 3600

;; ADDITIONAL SECTION:
alima.jobsgopublic.local. 3600 IN A 192.168.0.23
grp-svr-02.jobsgopublic.local. 3600 IN A 192.168.0.21

;; Query time: 0 msec
;; SERVER: 192.168.0.21#53(192.168.0.21)
;; WHEN: Sun Apr 15 11:21:18 2007
;; MSG SIZE rcvd: 167


; <<>> DiG 9.3.4 <<>> any shakira.aspire.local
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62288
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;shakira.aspire.local. IN ANY

;; ANSWER SECTION:
shakira.aspire.local. 3600 IN A 192.168.0.117

;; Query time: 0 msec
;; SERVER: 192.168.0.21#53(192.168.0.21)
;; WHEN: Sun Apr 15 11:21:59 2007
;; MSG SIZE rcvd: 54



Which all appear normal. But I still get
PING shakira.aspire.local (192.168.0.117) 56(84) bytes of data.
64 bytes from shakira.aspire.local (192.168.0.117): icmp_seq=1 ttl=64 time=1.76 ms
64 bytes from newintranet.jobsgopublic.local (192.168.0.117): icmp_seq=2 ttl=64 time=0.150 ms

on the Ubuntu box and
ping shakira.aspire.local
ping: unknown host shakira.aspire.local

on the debian, I am completely flummoxed at the moment.
 
Old 04-15-2007, 01:55 PM   #4
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
What resolvers do you have configured for the Debian box? I'm wondering if perhaps you have localhost listed first, and ping is not "patient" enough to wait for that to fail and the secondary resolvers to be queried. Clearly, dig and host are getting the correct answers...is it possible that ping and other programs that fail to resolve the hostnames are simply not getting their responses quickly enough?

Of course, that doesn't begin to explain why ping gets an answer quickly enough when you set up bogus .com hostnames...

I admit I'm grasping at straws.
 
Old 04-15-2007, 05:54 PM   #5
cricketjeff
LQ Newbie
 
Registered: Apr 2007
Distribution: debian etch and many others
Posts: 3

Original Poster
Rep: Reputation: 0
I've tried fiddling with name orders, with resolvers and even installing and uninstalling various dns servers, (bind bind9 and tunydns). My only thought was if there is some obscure reference somewhere to allowable TLDs or maybe to the maximum possible length of a TLD but I can't see it anywhere. If it exists it applies to all (well all I have tried) normal uses of name resolution, ssh, ping, web browsing, telnet ftp etc., but not to anything that explicitly looks up a name resolution. I shall keep digging thanks for the suggestions, any more are welcome!
 
Old 04-19-2007, 06:13 AM   #6
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
I haven't come up with anything else. Have you tried running strace on the ping process or some other program in which resolution is failing? It's sort of a long shot, but it will allow you to see the steps that the program is going through in order to get the hostname resolved. It will certainly show you if you are getting to the step of actually querying the MS DNS servers, or if the program is failing before that.

Give that a shot, perhaps it will get us somewhere.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Resolving Domains Internally And Externally With Bind9 And Caching Nameserver LXer Syndicated Linux News 0 02-11-2007 08:33 AM
Host resolving to local ip Ar0n Linux - Networking 5 11-17-2006 03:58 AM
Problem resolving local computer names wslyhbb Linux - Networking 15 03-11-2006 01:45 PM
Bind not resolving .org domains ggandy Linux - Networking 0 11-23-2004 05:16 PM
no domains resolving ? zeedoo Linux - Networking 3 07-12-2004 11:24 AM


All times are GMT -5. The time now is 09:18 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration