PDA

View Full Version : [ubuntu] PLEASE Help configuring nameserver BIND9


Oxycodone
February 18th, 2010, 01:22 AM
I have spent over 40 hours over the last two weeks trying to set my nameserver up on ubuntu 9.10 server. I am currently running XAMPP and have confirmed it is currently hosting the temp page I created through my IP ###.###.###.###, however BIND9 is not resolving the domain name. I think I'm finally going nuts and am seeking assistance.

I purchased the domain "*********.ME" through godaddy and created two hosts "NS1" & "NS2" in the domain manager:

http://img59.imageshack.us/img59/3568/hosts.jpg

I then changed my domain nameservers to point to my nameserver:

http://img203.imageshack.us/img203/1580/nameservers.jpg

I have forwarded port 53 in my router:

http://img704.imageshack.us/img704/4821/routert.jpg

CONFIGURATION FILES


/etc/resolv.conf
search *********.me
nameserver 192.168.1.151


/etc/bind/named.conf.local
zone "*********.me" {
type master;
file "/etc/bind/db.*********.me";
};

zone "1.168.192.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.192";
};


/etc/bind/db.192
$TTL 604800
@ IN SOA ns1.*********.me. hostmaster.*********.me. (
2010021710 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL

@ IN NS ns1.*********.me.

151 IN PTR ns1.*********.me.
150 IN PTR mail.*********.me.


/etc/bind/db.*********.me
$TTL 604800
@ IN SOA ns1.*********.me. hostmaster.*********.me. (
2010021711 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL

@ IN NS ns1
@ IN MX 10 mail.*********.me.

@ IN A 192.168.1.150
ns1 IN A 192.168.1.151
mail IN A 192.168.1.150
www IN CNAME ns1


dig *********.me
; <<>> DiG 9.6.1-P1 <<>> *********.me
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18219
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;*********.me. IN A

;; ANSWER SECTION:
*********.me. 604800 IN A 192.168.1.150

;; AUTHORITY SECTION:
*********.me. 604800 IN NS ns1.*********.me.

;; ADDITIONAL SECTION:
ns1.*********.me. 604800 IN A 192.168.1.151

;; Query time: 0 msec
;; SERVER: 192.168.1.151#53(192.168.1.151)
;; WHEN: Wed Feb 17 23:09:27 2010
;; MSG SIZE rcvd: 80


dig -x 192.168.1.151
; <<>> DiG 9.6.1-P1 <<>> -x 192.168.1.151
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10141
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;151.1.168.192.in-addr.arpa. IN PTR

;; ANSWER SECTION:
151.1.168.192.in-addr.arpa. 604800 IN PTR ns1.*********.me.

;; AUTHORITY SECTION:
1.168.192.in-addr.arpa. 604800 IN NS ns1.*********.me.

;; ADDITIONAL SECTION:
ns1.*********.me. 604800 IN A 192.168.1.151

;; Query time: 0 msec
;; SERVER: 192.168.1.151#53(192.168.1.151)
;; WHEN: Wed Feb 17 23:10:03 2010
;; MSG SIZE rcvd: 104

cariboo907
February 18th, 2010, 02:19 AM
I have to ask why you are going to the trouble, when you've already set things up via Godaddy, it takes about 48 hours for all the major dns servers to know that *********.ME is located at 24.131.153.132. If the domain name doesn't work after 48 hours, give Godaddy support a call. You paid for the service, you might as well use it.

Oxycodone
February 18th, 2010, 02:44 AM
cariboo907 thanks for the reply. I configured the host/nameserver on godaddy over 2 weeks ago. I actually had it resolving the webpage correctly about a week ago when I had ISPconfig 3 installed. The HDD running my ubuntu server was very old and crashed, thus needed to set my nameserver again with this new HDD. ISPConfig 3 uses MyDNS and the setup was done through a gui. I decided to use bind9 this time around as I have already configured my windows box with XAMPP.

Oxycodone
February 18th, 2010, 05:24 AM
I have changed this domain back to the godaddy nameservers and changed the records through total dns. I would really like to figure out why my nameserver was not resolving this page. If someone knows why, please let me know!! Thanks!

mbaas
February 18th, 2010, 07:50 AM
Hello,

You appear to be pointing to your LAN ip adresses (192.168.1.150 and 192.168.1.151). Reserved IP ranges cannot be reached from the internet. Your DNS should be pointing to your WAN ip adress.

Oxycodone
February 18th, 2010, 08:03 AM
I appreciate the response Mbaas. I suspected the same and changed the settings accordingly however must be missing something... Perhaps you could take the time to modify the configuration files I listed to show me what I am doing wrong? Thanks either way.

progone
April 16th, 2011, 09:44 PM
dyndns.com might be what you are looking for. If you own a linksys router, you can create a webhop from dyndns to forward to your home server.

Once you get a free or paid account setup with them, go to Synaptic Package manager and type in ddclient and download or type$ sudo apt-get install ddclient
The description: This package provides a client to update dynamic IP addresses with
several dynamic DNS service providers, such as DynDNS.com.

This makes it possible to use a fixed hostname (such as
myhost.dyndns.org) to access a machine with a dynamic IP address.

This client supports both dynamic and (near) static services, as well as
MX record and alternative name management. It caches the address, and
only attempts the update when it has changed."

Good luck with this. Depending on your ISP and your router the setup may vary.