View previous topic :: View next topic |
Author |
Message |
latitudes n00b
Joined: 21 Dec 2006 Posts: 3
|
Posted: Thu Dec 21, 2006 4:16 pm Post subject: ns setup with djbdns |
|
|
I'm new to gentoo and to server setup, please be gentle.
I've set up djbdns according to the HowTo here http://gentoo-wiki.com/HOWTO_Setup_a_DNS_Server_with_DJBDNS and I've gone to my domain registrar and pointed the domain's nameservers to my box.
I can now ping ns1.mydomain.net but I can not ping mydomain.net -- At this point, I'm stuck. My data file is included below.
Thanks!
Code: | $ ping ns1.bonsaibox.net
PING ns1.bonsaibox.net (216.111.116.36): 56 data bytes
64 bytes from 216.111.116.36: icmp_seq=0 ttl=47 time=168.711 ms
64 bytes from 216.111.116.36: icmp_seq=1 ttl=48 time=146.778 ms
[5]+ Stopped ping ns1.bonsaibox.net
$ ping bonsaibox.net
ping: cannot resolve bonsaibox.net: Unknown host |
djbdns data file:
Code: | localhost root # cat data
.bonsaibox.net:216.111.116.36:a:259200
|
dig debug:
Code: | $ dig @216.111.116.36 bonsaibox.net
; <<>> DiG 9.3.2 <<>> @216.111.116.36 bonsaibox.net
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9708
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;bonsaibox.net. IN A
;; AUTHORITY SECTION:
bonsaibox.net. 2560 IN SOA a.ns.bonsaibox.net. hostmaster.bonsaibox.net. 1166717364 16384 2048 1048576 2560
;; Query time: 152 msec
;; SERVER: 216.111.116.36#53(216.111.116.36)
;; WHEN: Thu Dec 21 12:10:16 2006
;; MSG SIZE rcvd: 83
|
|
|
Back to top |
|
|
Dan Veteran
Joined: 25 Oct 2005 Posts: 1302
|
Posted: Thu Dec 21, 2006 6:17 pm Post subject: |
|
|
Your authority sections should report something like
;; AUTHORITY SECTION:
bonsaibox.net. 77271 IN NS ns1.bonsaibox.net.
bonsaibox.net. 77271 IN NS ns2.bonsaibox.net.
as you can see , your server cant find any of the names you have published yet...
gentoo ~ # host bonsaibox.net
gentoo ~ # host ns1.bonsaibox.net
Host ns1.bonsaibox.net not found: 3(NXDOMAIN)
gentoo ~ # nslookup bonsaibox.net
Server: 216.111.116.36
Address: 216.111.116.36#53
*** Can't find bonsaibox.net: No answer
gentoo ~ # nslookup ns1.bonsaibox.net
Server: 216.111.116.36
Address: 216.111.116.36#53
** server can't find ns1.bonsaibox.net: NXDOMAIN
If this Quote: | localhost root # cat data
.bonsaibox.net:216.111.116.36:a:259200 |
is your data file then you are missing A records for ns1 and ns2 and you are missing NS records for ns1 and ns2 |
|
Back to top |
|
|
latitudes n00b
Joined: 21 Dec 2006 Posts: 3
|
Posted: Thu Dec 21, 2006 7:19 pm Post subject: |
|
|
Thanks for the help dcoats, I really appreciate it. I'm still having problems though. It seems like I must be missing something.
I've added the ns and alias entries to my data file, 'recompiled' it, but the DIG response still doesn't look correct
data file:
Code: |
.bonsaibox.net:216.111.116.36:a:259200
.ns1.bonsaibox.net:216.111.116.36:a:259200
.ns2.bonsaibox.net:216.111.116.36:a:259200
+ns1.bonsaibox.net:216.111.116.36:86400
+ns2.bonsaibox.net:216.111.116.36:86400 |
DIG results:
Code: | # dig @216.111.116.36 bonsaibox.net
; <<>> DiG 9.3.3 <<>> @216.111.116.36 bonsaibox.net
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4737
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;bonsaibox.net. IN A
;; AUTHORITY SECTION:
bonsaibox.net. 2560 IN SOA a.ns.bonsaibox.net. hostmaster.bonsaibox.net. 1166728333 16384 2048 1048576 2560
;; Query time: 0 msec
;; SERVER: 216.111.116.36#53(216.111.116.36)
;; WHEN: Thu Dec 21 11:18:06 2006
;; MSG SIZE rcvd: 83 |
Still no NS entries in the authority section... |
|
Back to top |
|
|
Dan Veteran
Joined: 25 Oct 2005 Posts: 1302
|
Posted: Thu Dec 21, 2006 8:54 pm Post subject: |
|
|
you need these...
# SOA record for example.com
# Zfqdn :mname :rname :ser :ref :ret :exp :min :ttl :timestamp :lo
Zexample.com:example.com.:root.example.com.:2005100111:28800:7200:604800:3600:3600
# sample name server 1
&example.com::ns1.example.com.:3600
# sample name server 2 (different server ideally in different location, but read the commonsense point above)
&example.com::ns2.example.com.:3600
# a full on record for the domain with the internet IP (1.2.3.4)
=example.com:1.2.3.4:3600
# a mail (mx) record
check the example on the doc you posted........
I prefer Bind can I ask what made you choose djb |
|
Back to top |
|
|
latitudes n00b
Joined: 21 Dec 2006 Posts: 3
|
Posted: Thu Dec 21, 2006 11:17 pm Post subject: |
|
|
Thanks dcoats, that worked. and yes... I should probably be using BIND, but the BIND howto looked really scary to a first-timer. |
|
Back to top |
|
|
|