PDA

View Full Version : Nameservers


terryoleary1981
11th June 2008, 22:52
HI

My ISPconfig has been setup for several domains. For each domain i have set the nameserver to 123-reg's default nameserver, and changed the A-Record on their control panel to point to my server.

I was wondering if i should actually create new name server pointing to my servers IP Address. My main motivation is that to add subdomains i have to pay £10 per sub domain to 123-reg which i think is out of order and i'd like to be able to do this myself.

vogelor
12th June 2008, 09:55
sorry, but i think, this will not work, because if there is already a DNS-Server "doing the job" you can't add a other doing the "subjob". this will not work. Only ONE PRIMARY DNS per Domain (and "many" Backups ;-)

terryoleary1981
12th June 2008, 16:15
I would remove the original entry for the site with 123-reg and just update the 123-reg with a nameserver entry, this should work shouldnt it?

vogelor
12th June 2008, 16:34
if you can add a forwarder IP for a DNS "doing the job" then it works (i think).

terryoleary1981
12th June 2008, 16:37
well by default the nameserver's were set to point to 123-reg, from 123-reg i changed the A-records..... so if i change the namserver to point directly to my server then i should by pass the 123-reg settings and manage it myself with ISPconfig.... no? [dns nooobie]

vogelor
12th June 2008, 17:01
be carefull!
the ip of the nameserver is stored in the "DNS-System". this means there is ONE ROOT DNS-Server pointing to (for example) ONE .de-Root - Server, ONE .fr- Root Server and so on. the .de Root is then pointing to to DNS-Server of 1und1, strato,... this means that you must have access to a DNS-Server inside this "system of DNS-Servers" and point to your DNS-Server. if you don't have access it will not work!

terryoleary1981
17th June 2008, 16:23
Hi I followed the tutorial about DNS setup at http://www.howtoforge.org/ispconfig_dns_godaddy and realised i may have set my DNS records up incorrectly, and also didnt have port 53 open on my router to allow dns access. I've changed all these and re run my dig and got the following outputs:

[root@wallace ~]# dig ns spongecat.com

; <<>> DiG 9.4.2 <<>> ns spongecat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8329
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;spongecat.com. IN NS

;; ANSWER SECTION:
spongecat.com. 79253 IN NS 192.168.1.108.

;; Query time: 3 msec
;; SERVER: 135.196.0.6#53(135.196.0.6)
;; WHEN: Mon Jun 16 21:00:18 2008
;; MSG SIZE rcvd: 58

-----------
[root@wallace ~]# dig mx spongecat.com

; <<>> DiG 9.4.2 <<>> mx spongecat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25748
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;spongecat.com. IN MX

;; ANSWER SECTION:
spongecat.com. 78904 IN MX 10 www.192.168.1.108.

;; AUTHORITY SECTION:
spongecat.com. 78904 IN NS 192.168.1.108.

;; Query time: 4 msec
;; SERVER: 135.196.0.6#53(135.196.0.6)
;; WHEN: Mon Jun 16 21:06:07 2008
;; MSG SIZE rcvd: 78

Firstly does this output still look ok? The website seems to have stopped working now / (192.168.1.108 is actually the internal IP of my web server, but i used my external IP in all the dns settings).

falko
18th June 2008, 19:23
spongecat.com. 79253 IN NS 192.168.1.108.You must use a hostname (e.g. ns1.example.com) for the NS record, not an IP address.

spongecat.com. 78904 IN MX 10 www.192.168.1.108.Lokks wrong, too. Should be something like
spongecat.com. 78904 IN MX 10 mail.spongecat.com.where mail.spongecat.com must be defined as an A record.

terryoleary1981
18th June 2008, 19:30
i now have these records, having hopefully sorted my records out


[root@localhost ~]# dig ns spongecat.com

; <<>> DiG 9.4.2 <<>> ns spongecat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8449
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;spongecat.com. IN NS

;; ANSWER SECTION:
spongecat.com. 75537 IN NS ns2.spongecat.com.
spongecat.com. 75537 IN NS ns1.spongecat.com.

;; Query time: 23 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Wed Jun 18 16:42:43 2008
;; MSG SIZE rcvd: 67

[root@localhost ~]# dig mx spongecat.com

; <<>> DiG 9.4.2 <<>> mx spongecat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46764
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;spongecat.com. IN MX

;; AUTHORITY SECTION:
spongecat.com. 10800 IN SOA ns1.spongecat.com. admin.spongecat.com. 2008061702 28800 7200 604800 86400

;; Query time: 90 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Wed Jun 18 16:42:56 2008
;; MSG SIZE rcvd: 77

My website appears, but i still cant receive emails, I can send them but i get bounces if i try to email admin@spongecat.com.

<admin@spongecat.com> (spongecat.com: No greeting from remote host)

I've tried to telnet into my server but is says connection refused which is strange as i've checked and my router has port 25 open as does my server and my ISP also doesnt have any restrictions on port 25. Not sure where something is going wrong