LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2010, 08:36 AM   #1
webart
LQ Newbie
 
Registered: Oct 2010
Location: Moldova, Republic of
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
Exclamation Can't setup DNS server on Ubuntu server 10


Hello to all !

I'll try to describe my question as clear as possible.
-------------------------------------------------------------------
- I have purchased a domain name : *****.md
- In the panel of registrar I have only the following options to complete :
Primary NS Hostname
Primary NS Netaddress
Secondary NS Hostname
Secondary NS Netaddress

- At home I have :
a)a WiFi router that is getting an external IP from my ISP provider (internal address of router is 192.168.1.111);
External IP from ISP is STATIC.

b)a computer which I use as server (ubuntu 10) with internal IP 192.168.1.100 (I get it by DHCP from Router but it can be set as static of course);

- On server are installed :
a) Apache + Mysql + PHP
b) Ftp serv
c) Webmin
d) SSH serv
e) Bind9 DNS serv


- On my WiFi router there is an option "Forwarding -> Virtual servers" where I setup the ports 53 + 80 to forward to my server and I can access from external my site by IP.


All I want is to have my site *****.md to run on my server and to be visible to external world.

I have searched Google for last 2-3 days for a solution but everything I try doesn't help.

I'm new in Linux ( 1 week probably). Everything except DNS server Bind I was able to setup and are working well.


Can anyone help me for setting this up. If possible step by step using webmin or shell.


This is my first post on this forum so I hope I followed the rules.


Kindly appreciated any reply.
 
Old 10-08-2010, 08:59 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,143
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
You can achieve this through port forwarding...

Follow these links you will get clear idea:


http://www.connectedhome.infopint.co...ome-webserver/

http://www.daniweb.com/forums/thread5942.html

http://www.no-ip.com/downloads.php
 
Old 10-08-2010, 09:08 AM   #3
webart
LQ Newbie
 
Registered: Oct 2010
Location: Moldova, Republic of
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by prayag_pjs View Post
You can achieve this through port forwarding...

Follow these links you will get clear idea:


http://www.connectedhome.infopint.co...ome-webserver/

http://www.daniweb.com/forums/thread5942.html

http://www.no-ip.com/downloads.php

Thanks but my question is totally different from your links.

My IP is STATIC and I want to setup Bind DNS server on Ubuntu.

What you've showed to me I have done some time ago on my windows pc but it's not what I need now.
 
Old 10-08-2010, 09:42 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,143
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
You don't want to do port forwarding?
 
Old 10-08-2010, 12:15 PM   #5
rustek
Member
 
Registered: Jan 2010
Location: Melbourne, IA, USA
Distribution: Ubuntu
Posts: 93

Rep: Reputation: 8
Create a file /etc/bind/whatever.md
change what needs changing, ";" are remarks.


; /etc/bind/whatever.md
;Zone File: whatever.md
$TTL 300; Five minutes, change this if you want.
$ORIGIN whatever.md.
@ IN SOA ns1.whatever.md. admin.whatever.md. (
1 ; serial number
28800 ; refresh
3600 ; retry
604800 ; expire
300 ) ; min TTL

;
; Name servers
@ IN NS ns1.whatever.md.
;
; Mail servers
@ IN MX 10 mail.whatever.md.
;
@ IN A 123.456.123.456
ns1 IN A 123.456.123.456
www IN A 123.456.123.456
mail IN A 123.456.123.456



Add the following to the end of /etc/bind/named.conf.local

zone "whatever.md" {
type master;
notify no;
allow-query { any; };
file "/etc/bind/whatever.md";
};


Edit /etc/bind/named.conf.options
and change forwarders and listen-on to correct numbers.
You may want to add:

version "None of your business";
allow-transfer { none; };

Before the closing brace.


/etc/init.d/bind9 restart
Should restart the server.

Look at your syslog for any errors when it starts
tail -n200 /var/log/syslog

Good luck
Russ
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
how to setup dns server on ubuntu by bind9 renuaseri Linux - Newbie 1 11-18-2009 02:15 AM
Setup DNS server on Ubuntu 7.04 Server edition using Bind 9 breezey Linux - Server 2 09-16-2007 03:36 AM
LXer: DNS server Setup using bind in Ubuntu LXer Syndicated Linux News 0 05-03-2007 12:16 AM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM


All times are GMT -5. The time now is 02:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration