Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Network Troublshooting => Linux Servers Support => Topic started by: joydeep on April 25, 2007, 11:28:31 AM
-
Dear forum,
I have again come back to you with a big confusion about creating own DNS.
I have a remote root server say it is myserver.domain.com
now there is no MX record for domain.com hence I can't get any mail for user@domain.com
That's why I like to create my own DNS on that server with MX record.
I have created a master zone by webmin as joydeep.edu and below is its config
-----------------------------------------
$ttl 38400
joydeep.edu. IN SOA joydeep.edu. joydeep.infoservices.in. (
2007042509
10800
3600
604800
38400 )
joydeep.edu. IN A 87.230.8.228
www.joydeep.edu. IN A 87.230.8.228
mail.joydeep.edu. IN A 87.230.8.228
ns1.joydeep.edu. IN A 87.230.8.228
ns2.joydeep.edu. IN A 87.230.8.228
joydeep.edu. IN NS ns1.joydeep.edu.
joydeep.edu. IN NS ns2.joydeep.edu.
joydeep.edu. IN MX 10 mail.joydeep.edu.
------------------------------------------------------------
and I also loaded it by webmin. now " host joydeep.edu" reports
Host joydeep.edu not found: 3(NXDOMAIN)
So how can I fix it ? where is the problem ?
please help me. thanks
-
I am not yet expert in DNS stuff, Gaurav can guide you better
-
For me also DNS in linux is somewhat difficult to implement
Just try the file mentioned below:
$TTL 2D
@ IN SOA lan.joydeep.edu. root.lan.joydeep.edu. (
2005051300 ; serial
3H ; refresh
1H ; retry
1W ; expiry
1D ) ; minimum
joydeep.edu. IN NS lan.joydeep.edu.
IN NS www.joydeep.edu.
IN MX 10 mail.joydeep.edu.
lan IN A 87.230.8.228
www IN A 87.230.8.228
mail IN A 87.230.8.228
ns1 IN CNAME www
Just copy it and make it forwader file , Try and let me know
then ping or host lan.joydeep.edu
or host ns1
Gaurav
-
I'm not sure if this was resolved or not. DNS in linux is actually fairly easy to implement once you understand the concept. Also the utilities dig and nslookup are critical to determining if your DNS setup is working or not.
$TTL 3600
@ IN SOA ns1.joydeep.edu. root.joydeep.edu (
2007113001 ; serial (version)
3600 ; 1H refresh period
600 ; 10M retry refresh this often
2592000 ; 4W expiration period
1800 ) ; 30M minimum TTL
IN NS ns1
IN NS ns2
IN MX 10 mail
joydeep.edu. IN A 87.230.8.228
ns1 IN A 87.230.8.228
ns2 IN A 87.230.8.228
mail IN CNAME joydeep.edu.
www IN CNAME joydeep.edu.
The second line IN SOA ... defines the nameserver and email to use if there are problems. So root.joydeep.edu corresponds to root@joydeep.edu.
Most domain registars require you to use two nameservers. Technically these should point to two different IPs but will probably work just fine pointing both to one.
You shouldn't use a CNAME for a name server, it needs to point directly to an IP.
To verify run the commands
dig mx joedeep.edu @localhost
dig joedeep.edu @localhost
Dig allows you to use @ to specify the DNS server to use. This way you can test your DNS changes before the propagation takes place.