LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-03-2006, 01:29 PM   #1
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Rep: Reputation: 15
Question Bind: linux resolving, windows not


I have a weird problem. I set up a Bind DNS server on my Gentoo box this
week (Bind 9.3.2) to run my domain within my private network. Some entries
will resolv to the local IP within the local LAN (given by my personal
Bind server) while the big bad outside will get my external IP through the
regular DNS servers. So far so good.
- When I resolv a name (CNAME) locally, it works fine (duh)
Code:
; <<>> DiG 9.3.2 <<>> knagers.somedomain.nl
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41186
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;knagers.somedomain.nl.                IN      A

;; ANSWER SECTION:
knagers.somedomain.nl. 259200  IN      CNAME   sirius.somedomain.nl.
sirius.somedomain.nl.  259200  IN      A       192.168.1.69

;; AUTHORITY SECTION:
somedomain.nl.         259200  IN      NS      ns.somedomain.nl.

;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Apr  3 20:20:20 2006
;; MSG SIZE  rcvd: 94
- Now, for the linux install (also gentoo) on my laptop.
Code:
; <<>> DiG 9.3.2 <<>> knagers.somedomain.nl
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40375
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;knagers.somedomain.nl.                IN      A

;; ANSWER SECTION:
knagers.somedomain.nl. 259200  IN      CNAME   sirius.somedomain.nl.
sirius.somedomain.nl.  259200  IN      A       192.168.1.69

;; AUTHORITY SECTION:
somedomain.nl.         259200  IN      NS      ns.somedomain.nl.

;; Query time: 2 msec
;; SERVER: 192.168.1.69#53(192.168.1.69)
;; WHEN: Mon Apr  3 20:07:31 2006
;; MSG SIZE  rcvd: 94
Also working!

-Now the same box, just the windows (W2K) part of it (it's a dual boot).
Code:
*** Can't find server name for address 192.168.1.69: Server failed
Server:  resolver.xs4all.nl
Address:  194.109.104.104

Non-authoritative answer:
Name:    knagers.somedomain.nl
Address:  194.255.15.233
Weird part is that this particular box gets its network settings from my
WiFi router, and they are the same (same IP, same default gw, same DNS
entries). So network settings can't be the problem... can they?
Same problem (and error) on the WinXP box of my wife.

It's a weird problem I haven't figured out yet, not even after some Googling and searching these forums. Hope someone can point me towards a solution (no, installing linux on the windows boxes is not a 'solution'... it's a workaround ).

(domain names and ip's have been changed to protect the innocent)
 
Old 04-04-2006, 09:12 AM   #2
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Try clearing the dns cache in Winders.

ipconfig /flushdns

Also, you may have to do an ipconfig /release && ipconfig /renew to get WinXP to actually pick up the new settings. I had an issue when I first set up my network with all this type stuff, and I had to flush the dns and release/renew the IP manually. Seems XP likes to hold onto stuff like it shouldn't.
 
Old 04-04-2006, 10:20 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
Originally Posted by ReefShark
Weird part is that this particular box gets its network settings from my
WiFi router, and they are the same (same IP, same default gw, same DNS
entries). So network settings can't be the problem... can they?
You could try nslookup -d but I'm not sure it will give you more info..
Also you can start bind with debug option (man named)

From the windows you can ping the gentoo ? I guess you already tried that
Can you telnet to the port 53 of the gentoo?
from the windows : telnet 192.168.1.9 53.
Maybe you miss an "acl" directive in bind option file.
 
Old 04-05-2006, 12:38 PM   #4
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Original Poster
Rep: Reputation: 15
@ARC1450
Looks like Windows does try to query the server, but doesn't get a reply.
I actually had the Win-boxes pointed towards the (now installed) primary DNS months ago, and my IPS's as secundary. But despite that, I did what you suggested and it didn't help.

Quote:
Originally Posted by nx5000
You could try nslookup -d but I'm not sure it will give you more info..
Code:
C:\Documents and Settings\someuser.WINBOXES>nslookup -d knagers.somedomain.nl
Got answer:
    HEADER:
        opcode = QUERY, id = 1, rcode = SERVFAIL
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 0,  authority records = 0,  additional = 0

    QUESTIONS:
        69.153.168.192.in-addr.arpa, type = PTR, class = IN

------------
*** Can't find server name for address 192.168.153.69: Server failed
------------
Got answer:
    HEADER:
        opcode = QUERY, id = 2, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 1,  authority records = 0,  additional = 0

    QUESTIONS:
        104.104.109.194.in-addr.arpa, type = PTR, class = IN
    ANSWERS:
    ->  104.104.109.194.in-addr.arpa
        name = resolver.xs4all.nl
Quote:
Originally Posted by nx5000
Also you can start bind with debug option (man named)

From the windows you can ping the gentoo ? I guess you already tried that
Can you telnet to the port 53 of the gentoo?
from the windows : telnet 192.168.1.9 53.
Maybe you miss an "acl" directive in bind option file.
Bind is running:
Code:
named     7964     1  0 20:28 ?        00:00:00 /usr/sbin/named -u named -n 1 -t /chroot/dns
When I try to query the server, nothing shows up in syslog. It is as if the query never reaches the server (but it does when I do the same thing with the same network setting on linux).

Last edited by ReefShark; 04-05-2006 at 01:33 PM.
 
Old 04-11-2006, 11:29 PM   #5
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Original Poster
Rep: Reputation: 15
Figured it out; there was an error in the IN SOA record of the reverse domain.
"Check your logging whenever you have a problem Reef, that's what it is there for..."

Fixed the error, and now Windoze can resolv against the DNS too.
 
Old 04-15-2006, 03:07 AM   #6
filex
Member
 
Registered: Sep 2004
Posts: 56

Rep: Reputation: 15
Can you share more information about this?

I had the similar problem in my office
 
  


Reply

Tags
dns, probelm, windows


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference b/w linux BIND & windows DNS kami146 Linux - Networking 2 10-16-2009 05:33 AM
Problems with resolving my website. Need help with BIND norus Linux - Software 3 10-21-2005 09:19 AM
Bind not resolving .org domains ggandy Linux - Networking 0 11-23-2004 05:16 PM
BIND only resolving domain if no "www." noisybastard Linux - Networking 2 11-04-2003 08:19 AM
Automatically resolving WINDOWS paths to pre-configured Linux paths gazzy Linux - General 1 09-05-2003 10:15 PM


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

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 Google+: linuxquestions
Open Source Consulting | Domain Registration