Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
In few words i want to set reverse dns for my existing domain from godaddy and use it as host on irc network. I followed this tutorial to set the Bind9 server.
The way my network is set is this:
Internet comes to my router with the real static ip and then it comes to my linux machine.I'm not that familiar with setting dns servers so i have few questions and problems. What DNS should i set to the domain on godaddy (they are like ns1.xXX.XX) and i can't set it to my ip address.Second when I nslookup something i got this error:
#FORWARD LOOKUP ZONE - Holds A records, maps hostnames to IP's
zone "pozitivensvqt.com"
{
type master;
file "/etc/bind/zones/pozitivensvqt.com.db";
};
#REVERSE LOOKUP ZONE - Holds TRP records, maps IP's to hostnames
zone "0.207.199.in-addr.arpa"
{
type master;
file "rev.0.207.199.in-addr.arpa";
};
named.conf.options
Code:
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 {
199.207.13.1;
91.92.178.193;
85.187.216.3;
8.8.8.8;
8.8.4.4;
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
pozitivensvqt.com.db
Code:
$TTL 3D
@ IN SOA Lemuria.pozitivensvqt.com. admin.pozitivensvqt.com. {
2007031001;
28800;
3600;
604800;
38400
};
pozitivensvqt.com. IN NS Lemuria.pozitivensvqt.com.
Lemuria IN A 199.207.13.100
www IN CNAME Lemuria
rev.0.207.199.in-addr.arpa
Code:
$TTL 3D
@ IN SOA Lemuria.pozitivensvqt.com. admin.pozitivensvqt.com. {
2007031001;
28800;
604800;
604800;
86400
};
IN NS Lemuria.pozitivensvqt.com.
100 IN PTR Lemuria.pozitivensvqt.com.
1 IN PTR gw.pozitivensvqt.com.
If you can tell me what i did wrong with the bind9 and how to set it up right to use my real domain as host in irc it would be great.
They don't use bind9 and the configuration files kinda confused me
Can you give me example of the zone files to what would work ?
The general 'how to' articles for configuring BIND tend to be rather generic but they do give you an overview of what's necessary. The following article and search should give you all you need to know.
I followed the first guide and changed the zone files to these:
pozitivensvqt.com.db
Code:
;
; Zone file for my-site.com
;
; The full zone file
;
$TTL 3D
@ IN SOA ns1.pozitivensvqt.com. admin.pozitivensvqt.com. (
200211152 ; serial#
3600 ; refresh, seconds
3600 ; retry, seconds
3600 ; expire, seconds
3600 ) ; minimum, seconds
NS www ; Inet Address of nameserver
pozitivensvqt.com. MX 10 mail ; Primary Mail Exchanger
localhost A 127.0.0.1
Lemuria A 199.207.13.100
mail A 199.207.13.100
ns1 CNAME Lemuria
www CNAME Lemuria
and rev.0.207.199.in-addr.arpa
Code:
;
; Filename: 192-168-1.zone
;
; Zone file for 192.168.1.x
;
$TTL 3D
@ IN SOA www.pozitivensvqt.com. admin.pozitivensvqt.com. (
200303301 ; serial number
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
NS www ; Nameserver Address
100 PTR Lemuria.pozitivensvqt.com.
Before you get too hung up on the zone files (which are pretty simple text files regardless of the version of bind) I'd just like to chip this 1000 feet overview in. For small scale users who don't want the hassle of running their own DNS servers I would personally say that:
Reverse DNS is usually taken care of by the provider of the IP address itself as it relates to the IP address.
Forward DNS relates to the the domain name and is usually looked after by the person that sold you the domain name through a control panel of some kind.
If you want to take care of running your own server (bind or whatever), so that it is authoritative and allows the public to resolve your DOMAIN NAME to YOUR IP ADDRESS (be it A, AAAA, MX etc), you will need to register a name server and this would typically be done with the people that sold you the domain name (they may have a control panel for doing it).
The PTR (reverse) is a separate and different story - this will remain with the provider of the IP where you are hosting you server/service. They might allow you to become responsible for it, if the IP is yours and yours alone. If it's a dynamic or shared IP it's pretty unlikely.
You may find you don't actually have any need at all to run your own server - your current provider who resolves your name to ip, and ip to name may be able to let you do what you need to do.
What is it the actual problem you are trying to solve by running your own DNS server?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.