Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.