OVH Community, your new community space.

Setting up DNS on Ubuntu server


melat0nin
09-08-2010, 15:46
Quote Originally Posted by marks
well, the best is to try to test the server before you start using it as a DNS server for your domain.

If you have a linux server, you can run the following command to make sure that your server resolves the domain properly

# dig mydomain.com @myserver.ovh.net +short

If you use Windows, you can try luck with nslookup or change the DNS servers of your machine to your server and test the resolution only for this domain (the rest probably wouldn't work).

Remember too to set the secondary DNS that OVH provides for free.
Thanks Marks, I used dig and I think things are set up correctly.

marks
02-08-2010, 11:49
well, the best is to try to test the server before you start using it as a DNS server for your domain.

If you have a linux server, you can run the following command to make sure that your server resolves the domain properly

# dig mydomain.com @myserver.ovh.net +short

If you use Windows, you can try luck with nslookup or change the DNS servers of your machine to your server and test the resolution only for this domain (the rest probably wouldn't work).

Remember too to set the secondary DNS that OVH provides for free.

melat0nin
31-07-2010, 14:25
Hi all

I've been migrating my organisation's website to Ubuntu Server and we're almost at the stage where the domain can be transferred. I just need to make sure DNS is set up properly to accept the domain transfer (and to avoid any outages in access to the site or email redirecting).

I've got Webmin installed, and have used that to create the relevant config files, but I'm quite new to this aspect of web server admin so I'd like to check with more experienced folk before going ahead with the transfer.

My named.conf.local looks like this:

Code:
root@server:/etc/bind# cat named.conf.local
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "scotlawcom.gov.uk" {
	type master;
	file "/var/lib/bind/scotlawcom.gov.uk.hosts";
	};
and /var/lib/bind/scotlawcom.gov.uk.hosts looks like this:

Code:
root@r33769:/etc/bind# cat /var/lib/bind/scotlawcom.gov.uk.hosts
$ttl 38400
scotlawcom.gov.uk.	IN	SOA	r33769.ovh.net. my\.emailaddress.gmail.com. (
			1280525265
			10800
			3600
			604800
			38400 )
scotlawcom.gov.uk.	IN	NS	r33769.ovh.net.
scotlawcom.gov.uk.	IN	A	178.32.102.226
www.scotlawcom.gov.uk.	IN	A	178.32.102.226
scotlawcom.gov.uk.	IN	NS	sdns1.ovh.net.
scotlawcom.gov.uk.	IN	MX	5 emailserver.gov.uk.
When I run 'dig @r33769.ovh.net scotlawcom.gov.uk' I don't get any output, but when I run 'dig @sdns1.ovh.net scotlawcom.gov.uk' I get this:

Code:
$ttl 38400
scotlawcom.gov.uk.	IN	SOA	r33769.ovh.net. laurence\.diver.gmail.com. (
			1280525265
			10800
			3600
			604800
			38400 )
scotlawcom.gov.uk.	IN	NS	r33769.ovh.net.
scotlawcom.gov.uk.	IN	A	178.32.102.226
www.scotlawcom.gov.uk.	IN	A	178.32.102.226
scotlawcom.gov.uk.	IN	NS	sdns1.ovh.net.
scotlawcom.gov.uk.	IN	MX	5 sedsh08.sedsh.gov.uk.
root@r33769:~# dig @sdns1.ovh.net scotlawcom.gov.uk

; <<>> DiG 9.5.1-P2.1 <<>> @sdns1.ovh.net scotlawcom.gov.uk
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 58927
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;scotlawcom.gov.uk.		IN	A

;; Query time: 7 msec
;; SERVER: 213.251.188.140#53(213.251.188.140)
;; WHEN: Sat Jul 31 14:26:10 2010
;; MSG SIZE  rcvd: 35
Can anyone help me properly set up my RPS for DNS? I need it to route mails to a separate server, hence the MX record. Any help would be much appreciated.

Laurence