Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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'm trying for a couple of days to configure a simple DNS server but it just doesn't work. The think is simple. I have a static public IP address: 1.1.1.1 and I recently bought a domain name: gigi.com. All I want to do is to redirect gigi.com to 1.1.1.1 (Apache server).
So installed bind.
the named.conf file looks like this:
options {
directory "/var/named";
};
zone "." IN {
type hint;
file "named.ca";
};
zone "gigi.com" IN {
type master;
file "named.gigi.com";
And the file "named.gigi.com":
$TTL 14400
; Specify the primary nameserver ns1.example.com in SOA
@ 14400 IN SOA ns1.gigi.com. hostmaster.gigi.com. (
2008092902 ; Serial in YYYYMMDDXX (XX is increment)
10800; refresh seconds
3600; retry
604800; expire
38400; minimum
);
; Website IP Address specified in A record
IN A 1.1.1.1
; TWO nameserver names
IN NS ns1.gigi.com.
IN NS ns2.gigi.com.
; Nameservers and their corresponding IPs
ns1 IN A 1.1.1.1
ns2 IN A 1.1.1.2
; Specify here any Aliases using CNAME record
www IN CNAME 1.1.1.1
};
Named daemon is runnig with no errors. But the domain: gigi.com does work. Nslookup doesn't give 1.1.1.1 as name server. Please help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.