February 27th, 2003, 11:50 AM
Secondary DNS name server.
I have just spend the last 12 hours reading as much as I can on DNS and I now think I understand it (well, more then I did 12 hours ago)
I have installed djbdns and I have got working dnscache on my 2 machine network, I have set my Xp machine for DNS and it works, however i can't use tools such as dnsip on the linux machine. Anyway, that not the main problem at the moment ;-)
I understand that its better to have two DNS servers working for your domain. Well, I only have access to one linux machine with a static IP address (mine), and my machine *may* be down over weekend and such (I.E. When I go away working or on holiday).
My domain name is setup at 123-reg.co.uk and this site allows me to change my DNS (http://www.kcoventry.co.uk/dns.jpg)
Could I use 123-reg and change my dns setting there. I could then setup a MX record under my domain then and possibly use 123-reg mx record as a backup. ?
Or, could I use a free service such as http://www.zoneedit.com to host a secondary DNS server. They do offer a secondary DNS but no backup for e-mail (well, you have to pay for it). Is there a free provider of secondary backup e-mail out there ? Is zoneedit anygood ? I have asked my firend who uses linux but as he has no need for DNS, he can't offer a secondary DNS.
Another option is to use my ISP for e-mail relaying. They allow delivery via SMTP and I can finger the smtp server if my machine goes offline and I can pick up my e-mail.
Thanks for any help.
Last edited by digrem; February 27th, 2003 at 01:20 PM.
February 27th, 2003, 03:55 PM
>> I understand that its better to have two DNS servers working for your domain
To be more precise you should have said two content DNS servers or two tinydns.
>> and my machine *may* be down over weekend
If it will knowingly go down every weekend then you shouldn't even run tinydns as the master content DNS server for your domain in the first place.
>> My domain name is setup at 123-reg.co.uk
Do you really mean hosted at?
>> this site allows me to change my DNS
Not clear enough. Do they let you change your A record?
>> Could I use 123-reg and change my dns setting there
Change what setting?
>> I could then setup a MX record under my domain
You should, if you are allowed to.
>> and possibly use 123-reg mx record as a backup. ?
Absolutely unnecessary. The whole terminology is that, when your single mail server goes down, remote servers trying to reach you would retry the delivery again for at least 3 days. There is no need to have 123-reg pick up your mails temporarily and let anyone there to reveal your mission-critical messages, and do the same thing (retry the delivery) again. That is to say, the 2nd MX must be a trust host, or else just forget it altogether.
>> could I use a free service such as http://www.zoneedit.com to host a secondary DNS server
No, because you are not even hosting your own domain (not running tinydns as the primary).
>> Is there a free provider of secondary backup e-mail out there ?
Just forget about backup email, as you have a dozen other essentials things you should first do, let alone a backup email is useless to you.
February 27th, 2003, 05:47 PM
Sorry, downtime would be a minium but I could see the machine would be down for a least 1 week per year. (Not all at the same time I must add)
Yes they do, and CNAME. I can also change my name servers without me e-mailing them, but what loses me is it is as simple as changing the nameserver to my static IP address after i have setup tinydns correctly ? Or could I just say - create a A record called "ns1.kcoventry.co.uk" in 123-reg.co.uk DNS setting to resolve to my linux box IP address ?
Sorry, I don't have command of the lanuage used yet. I suppose I meant change my DNS settings and name server settings at 123-reg.
Allowed to ? By whom ? ISP -> Yes as long as it's not a open SMTP server.
Good, that was my main worry. I feel better now that if my machine does go down, I won't lose that much e-mail. (If any)
but if I did run tinydns as my primary, would it be really that neccesary to run a second nameserver as I wouldn't lose any e-mail. (which is my main worry) Ok , I understand that I would lose my www, ftp and e-mail if I lost me Internet connection until the service came back-online.
Fine, I will wory about that later.
I hardest task with DNS is there seem to be lots of different ways to achieve one task. It's finding the best way that's worrying me !
Thanks for your help
February 28th, 2003, 01:45 PM
>> Yes they do, and CNAME
Then 123-reg currently is hosting your domain. If you purchased your domain thru them, then they are only your registrar. Some registrars offer additional services, like domain hosting and email forwarding. You can change your A, CNAME or whatever records only thru the server who hosts your domain, else you just can't change those.
>> Or could I just say - create a A record called "ns1.kcoventry.co.uk" in 123-reg.co.uk
You can but pointless. Why create an A record and have 123-reg continues to host your domain? Create/update/remove records need not to go thru 123-reg if you host your own domain.
March 1st, 2003, 08:54 AM
Yep, totally understand. I have desided to go for it and run a DNS server.
Just to make sure...
I have installed dnscache on 192.168.1.1
Installed tinydns on 18.104.22.168.
Copy of my data
#Define the authoritative nameserver
I have also done the following.
I will need to open my firewall to allow port 53 on incomming, won't I ?
./add-ns kcoventry.co.uk 22.214.171.124
I have followed the testing procedure at http://cr.yp.to/djbdns/run-server.html and everything is working fine.
I have also managed to possibly get a second DNS server, off site if I wish.
I suppose all that I need to do now is to login to 123-reg.co.uk and change my name servers to 126.96.36.199 or keithcoventry.force9.co.uk (Which resolves to my static IP address)
Will, I logged in to 123-reg and updated my name server to
keithcoventry.force9.co.uk (Which is 188.8.131.52) and a temp lame server.
I went to samspade.org and checked my DNS entry and for some reason my IP address changed. it was showing 184.108.40.206 for the primary name server
I went to force9.co.uk and checked my static IP address and to my astonishment, my static IP is 220.127.116.11 with a netmask of 255.255.255.252 WTF. I never was told about this, let alone signup for it. I suppose this means I have No-NAT on my account. Should I keep this setup ? Could I use 18.104.22.168 as primary and 22.214.171.124 as secondary ?
Update 2. One of my friends runs a VISP and will give me a secondary name server on his machine. I suppose the only draw back is that if I update my DNS I will need to tell him about the changes.
Last edited by digrem; March 1st, 2003 at 11:49 AM.
March 3rd, 2003, 05:09 PM
I really don't care who 123-reg.co.uk and force9.co.uk and samspade.org are as they are more confusing since you mentioned them.
As far as your data file this is the correct version:
mail.kcoventry.co.uk is removed because you shouldn't use it in the first place. Never use the . line because it's absolutely useless, use Z line instead.
>> cd /service/tinydns/root ./add-ns kcoventry.co.uk
Do not use any of the script there, they are totally useless. Just alter data file by hand.
>> I will need to open my firewall to allow port 53 on incomming
Incoming udp from 53 and 1024-65535. TCP is almost never needed.
>> only draw back is that if I update my DNS I will need to tell him about the changes
Depends on which nameserver. If he also runs tinydns then you can just use rsync over ssh.
>> Could I use 126.96.36.199 as primary and 188.8.131.52 as secondary ?
March 4th, 2003, 03:12 PM
Can I ask why this link need to be removed ?
Can I forward my e-mail to a different address whist allowing my DNS server to operate. I am having a few problems with my SMTP server at the mo.
Also, my second ns server is called "ns.mywebserver.net" I would have to change the 3rd line down to
wouldn't I ?
Thanks for all your help freebsd.
Last edited by digrem; March 4th, 2003 at 04:01 PM.
March 7th, 2003, 12:18 AM
>> Can I ask why this link need to be removed ?
Because using ns1.kcoventry.co.uk as your MX is much more reliable than using mail.kcoventry.co.uk.
>> Can I forward my e-mail to a different address whist allowing my DNS server to operate
>> my second ns server is called "ns.mywebserver.net"
Then you don't need to provide 184.108.40.206 because nobody will ask your server for the IP of ns.mywebserver.net.
March 9th, 2003, 07:02 PM
Fine, thanks for that. I have updated the nameserver at 123-reg and my DNS is now working and I am receiving my e-mail and www page now.