[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Network Troublshooting  |  Linux Servers Support  |  Topic: problem setting own DNS; pls HELP
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: problem setting own DNS; pls HELP  (Read 496 times)
0 Members and 1 Guest are viewing this topic.
joydeep
Linux Noob !
*
Offline Offline

Posts: 21


View Profile
« on: April 25, 2007, 07: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
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2215


View Profile
« Reply #1 on: April 25, 2007, 03:59:06 PM »

I am not yet expert in DNS stuff, Gaurav can guide you better
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #2 on: April 27, 2007, 01:34:52 AM »

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






« Last Edit: April 27, 2007, 01:41:10 AM by gauravbajaj » Logged
rsw686
Linux Noob !
*
Offline Offline

Posts: 4


View Profile
« Reply #3 on: November 30, 2007, 01:30:58 PM »

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.

Code:
$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
Code:
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.
« Last Edit: November 30, 2007, 01:32:50 PM by rsw686 » Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Problem on setting up the internet connection General Networking Support in Linux summer00 5 1361 Last post May 18, 2004, 02:12:44 AM
by Ricky
digital setting for Sound Blaster Audigy Linux Audio Support exsysise 0 1491 Last post July 15, 2004, 08:03:15 AM
by exsysise
Setting up DMZ network (demilitarized zone) Linux Servers Support rana28 1 680 Last post January 17, 2005, 12:18:38 PM
by b0n3thug5
how to do proxy setting for lan Linux Proxy Server Support navodaya2mnnit 1 707 Last post August 20, 2005, 04:28:53 AM
by Ricky
mail setting Linux Servers Support deven_01 2 545 Last post September 27, 2005, 08:05:11 AM
by gauravbajaj
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 10:26:08 PM

Login with username, password and session length
Navigation
Recent Discussions
[November 29, 2008, 02:23:49 PM]

[November 29, 2008, 02:14:14 PM]

[November 29, 2008, 04:00:36 AM]

[November 28, 2008, 07:05:28 AM]

[November 28, 2008, 07:04:39 AM]

[November 28, 2008, 06:58:16 AM]

[November 28, 2008, 06:47:09 AM]

[November 26, 2008, 11:53:32 AM]

[November 26, 2008, 04:00:22 AM]

[November 25, 2008, 06:44:47 PM]
Members
Total Members: 6252
Latest: rash31
Stats
Total Posts: 8285
Total Topics: 2257
Online Today: 34
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 8
Total: 8
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc