LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-19-2011, 04:20 AM   #1
pasadia
LQ Newbie
 
Registered: Oct 2011
Posts: 1

Rep: Reputation: Disabled
BIND configuration


Hello all,

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.
 
Old 10-19-2011, 10:49 PM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
what is the output that you get when you do

Code:
#dig -x 1.1.1.1

#dig ns1.gigi.com
I would also like to see the output of these files

Code:
#vi /etc/resolv.conf
#vi /etc/hosts
#hostname

Last edited by deep27ak; 10-19-2011 at 10:53 PM.
 
  


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
Bind configuration MEETKAMBOJ Linux - Server 3 10-08-2011 07:33 AM
bind Configuration farooqhussain Linux - Networking 2 09-08-2008 09:42 AM
Bind Configuration namit Linux - Software 1 04-25-2007 10:03 PM
FC 6 BIND Configuration titel Linux - Newbie 2 12-12-2006 10:08 PM
Bind configuration lmcilwain Linux - Software 1 01-31-2004 03:59 PM

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

All times are GMT -5. The time now is 03:55 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