LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-10-2012, 06:59 AM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Rep: Reputation: 32
Question DNS Server


Just a question, not sure if its a dumb one or not but would like to know tho

Setting up your own DNS Server on Ubuntu help me out

I have a ddns IP always changing,my domain is hosted by my ISP, right now I usually have to log into my control panel/DNS to change the IP manually when needed.

TT ( karl )
 
Old 05-10-2012, 07:09 AM   #2
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
Follow the Ubuntu threads,

https://help.ubuntu.com/community/BIND9ServerHowto
http://ubuntuforums.org/showthread.php?t=236093
 
Old 05-10-2012, 07:41 AM   #3
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
Thanks for the reply

So your saying it can be done, I did come across a link before I posted the question

here's what I was looking at.

http://comtech247.net/2012/04/30/how...ver-12-04-lts/

TT ( karl )
 
Old 05-10-2012, 08:28 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
What use is setting up your own server? What happens when the IP that your DNS server is running on changes?

Don't run your own DNS server. Don't.

If your domain host doesn't provide a mechanism for this already (have you asked them?) then I would recommend using zoneedit.com to provide your DNS which has a number of ways to automatically update entries. You'd just tell your domain registrar to use zoneedits dns servers for NS records and it's done.
 
Old 05-11-2012, 06:35 AM   #5
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
Hi
I have posted my dns configuration in ubuntu 10.04 lucid

I tried out using these link

https://help.ubuntu.com/8.04/serverg...iguration.html


Function to install required package



#apt-get install bind9*



Function to adding ipaddress in Dns server



#vi /etc/bind/named.conf.options



options {

directory "/var/cache/bind";



// If there is a firewall between you and nameservers you want

// to talk to, you may need to fix the firewall to allow multiple

// ports to talk. See http://www.kb.cert.org/vuls/id/800113



// If your ISP provided one or more IP addresses for stable

// nameservers, you probably want to use them as forwarders.

// Uncomment the following block, and insert the addresses replacing

// the all-0's placeholder.



// forwarders {

// 0.0.0.0;

// };

forwarders {

10.200.2.42;

};





auth-nxdomain no; # conform to RFC1035

listen-on-v6 { any; };

};





Function to modify forward zone entry file



vi /etc/bind/named.conf.local



zone "example.com" {

type master;

file "/etc/bind/db.example.com";

};





Function to create a new zone file



sudo cp /etc/bind/db.local /etc/bind/db.example.com





Function to create a forward zone file



vi /etc/bind/db.example.com



;

; BIND data file for local loopback interface

;

$TTL 604800

@ IN SOA sample.example.com. root.example.com. (

2 ; Serial

604800 ; Refresh

86400 ; Retry

2419200 ; Expire

604800 ) ; Negative Cache TTL

;

@ IN NS sample.example.com.

@ IN A 127.0.0.1

@ IN AAAA ::1

sample IN A 10.200.2.42



Function to create a Reverse zone file



vi /etc/bind/named.conf.local



zone "2.200.10.in-addr.arpa" {

type master;

notify no;

file "/etc/bind/db.10";

};



sudo cp /etc/bind/db.127 /etc/bind/db.10



Function to Create Reverse zone file



vi /etc/bind/db.10





;

; BIND reverse data file for local loopback interface

;

$TTL 604800

@ IN SOA sample.example.com. root.example.com. (

1 ; Serial

604800 ; Refresh

86400 ; Retry

2419200 ; Expire

604800 ) ; Negative Cache TTL

;

@ IN NS sample.

42 IN PTR sample.example.com.





Function to edit hosts configuration file



#vi /etc/hosts



127.0.0.1 sample localhost.localdomain localhost

127.0.1.1 sample

10.200.2.42 example.com

10.200.2.42 sample.example.com sample



Function to edit resolved



#vi /etc/resolv.conf



search example.com

nameserver 10.200.2.42

nameserver xx.xx.xx.xx






Testing Dnsserver



root@sample:~# dig 10.200.2.42 mx



; <<>> DiG 9.7.0-P1 <<>> 10.200.2.42 mx

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 61212

;; flags: qr aa; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0



;; QUESTION SECTION:

;10.200.2.42. IN MX



;; AUTHORITY SECTION:

. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2012050900 1800 900 604800 86400



;; Query time: 116 msec

;; SERVER: 10.200.0.6#53(10.200.0.6)

;; WHEN: Wed May 9 19:32:48 2012

;; MSG SIZE rcvd: 104



root@sample:~# dig sample.example.com mx



; <<>> DiG 9.7.0-P1 <<>> sample.example.com mx

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24012

;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0



;; QUESTION SECTION:

;sample.example.com. IN MX



;; AUTHORITY SECTION:

example.com. 86367 IN SOA ns.domainnetwork.se. hostmaster.melbourneitcbs.com. 2011092801 21600 3600 2419200 867



;; Query time: 1 msec

;; SERVER: 10.200.0.6#53(10.200.0.6)

;; WHEN: Wed May 9 19:33:00 2012

;; MSG SIZE rcvd: 113

Last edited by jsaravana87; 05-11-2012 at 06:38 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to configure another dns server to combine use with primary current dns server. hocheetiong Linux - Newbie 1 05-29-2008 06:57 PM
LXer: Find out DNS Server Version With DNS Server Fingerprinting Tool LXer Syndicated Linux News 0 12-21-2007 05:30 PM
LXer: Find out DNS Server Version With DNS Server Fingeprinting Tool LXer Syndicated Linux News 0 12-21-2007 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration