You are not logged in.

#1 2009-06-06 04:29:48

kdsxchris
Member
Registered: 2008-09-27
Posts: 3

bind9

I have bind9 running with default configuration, and I added the "domain.tld" entry from the arch wiki page on bind9. I am having problems, however; using nslookup I get this:

> domain.tld
Server:        [my server with bind9 running...]
Address:    [my server]#53

Name:    domain.tld
Address: [my server]

If i try ping, however, i get this

ping: unknown host domain.tld

If I stop bind9 daemon, then nslookup fails...

Offline

#2 2009-06-06 15:01:03

darthaxul
Member
Registered: 2008-09-24
Posts: 156

Re: bind9

did you try to ping the ip address of dns server? the dns server needs to have a way to resolve a name to an ip address. maybe u didn't set that up properly. the only other guess is the server is not authoratative?

Offline

#3 2009-06-06 20:49:39

kdsxchris
Member
Registered: 2008-09-27
Posts: 3

Re: bind9

So here is something that might help...On my local machine with bind9 running, if my resolv.conf file has nameserver localhost and dig and nslookup work, but ping does NOT work.
dig

# dig google.com

; <<>> DiG 9.6.0-P1 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44197
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com.            IN    A

;; ANSWER SECTION:
google.com.        211    IN    A    74.125.45.100
google.com.        211    IN    A    74.125.67.100
google.com.        211    IN    A    74.125.127.100

;; AUTHORITY SECTION:
google.com.        345511    IN    NS    ns1.google.com.
google.com.        345511    IN    NS    ns3.google.com.
google.com.        345511    IN    NS    ns4.google.com.
google.com.        345511    IN    NS    ns2.google.com.

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Jun  6 15:43:07 2009
;; MSG SIZE  rcvd: 148

nslookup

# nslookup google.com
Server:        127.0.0.1
Address:    127.0.0.1#53

Non-authoritative answer:
Name:    google.com
Address: 74.125.127.100
Name:    google.com
Address: 74.125.45.100
Name:    google.com
Address: 74.125.67.100

ping

# ping google.com
ping: unknown host google.com

And another thing...if I completely ERASE my /etc/named.conf file I get the same results as if the config file doesn't have anything to do with bind9. If I do rndc status I get

# rndc status
version: 9.6.0-P1 (version.bind/txt/ch disabled)
number of zones: 16
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running

This is after I have restarted my computer, /etc/rc,d/named restart, rndc reload, rndc flush. Any suggestions?

Offline

#4 2009-06-07 08:11:13

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: bind9

firstly, I would make your resolv.conf entry point to 127.0.0.1

nameserver 127.0.0.1

no sense adding an extra gethostbyname call to name resolution...

as for the ping issue.. do you get the same result when you do 'ping -n google.com' ?


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2009-06-07 08:17:22

kdsxchris
Member
Registered: 2008-09-27
Posts: 3

Re: bind9

Well, ping is working only if I am sshed into the machine with bind9 running. On another machine connected to my local network, nslookup and dig work but NOT ping. Ping does work, however, for my default "domain.tld" entry and another "chris.cotter" entry I made up (my first and last name...).

Offline

Board footer

Powered by FluxBB