LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-29-2016, 05:32 AM   #1
saksham0161
LQ Newbie
 
Registered: Oct 2016
Posts: 3

Rep: Reputation: Disabled
Problem with bind9 configuration


I am trying to setup a DNS server that would run on the local LAN,
I want to make the name login.nitj.in to be translated to 10.10.11.1

here is my named.conf.local file output

zone "login.nitj.in" {
type master;
file "/etc/bind/db.login.nitj.in"; # zone file path
};

and here is my db.login.nitj.in file output


;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.login.nitj.in. admin.login.nitj.in. (
8 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL

login.nitj.in. IN NS ns1.login.nitj.in.
ns1.login.nitj.in. IN A 10.10.11.1




My server is not working please help
 
Old 10-29-2016, 07:52 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,
Quote:
My server is not working please help
What you mean with the above? Give us more details, like logs, errors you face etc, so we could actually help you.

Anyway if you want "login.nitj.in to be translated to 10.10.11.1", you need to add
Code:
login.nitj.in. IN A 10.10.11.1
Increase the serial number and reload zone (or named)

Regards
 
Old 10-29-2016, 08:49 AM   #3
saksham0161
LQ Newbie
 
Registered: Oct 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
@bathory

Thanks for the reply first of all.
I have mentioned before that i have added the line
login.nitj.in. IN A 10.10.11.1
in the db.login.nitj.in as you told.
Problem i am facing is that when i connect other computer with a LAN cable to my computer and enter login.nitj.in in its
web browser, it is not able to translate to 10.10.11.1
 
Old 10-29-2016, 10:00 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by saksham0161 View Post
I have mentioned before that i have added the line
login.nitj.in. IN A 10.10.11.1
in the db.login.nitj.in as you told.
Why am I not seeing it?
Take a look again at your zone file. You have
Quote:
ns1.login.nitj.in. IN A 10.10.11.1
that is not the same host as login.nitj.in.

Don't be confused with the lines
Quote:
login.nitj.in. IN NS ns1.login.nitj.in.
ns1.login.nitj.in. IN A 10.10.11.1
The 1st line just tells that the authoritative nameserver for the domain login.nitj.in is the host ns1.login.nitj.in while in the 2nd line you just assign the host ns1.login.nitj.in an A RR. So the plain login.nitj.in does not have an A RR.
Just to make it more clear, see the following zone file:
Code:
$TTL 604800
@ IN SOA ns1.login.nitj.in. admin.login.nitj.in. (
8 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL

login.nitj.in. IN NS ns1.login.nitj.in.
ns1.login.nitj.in. IN A 10.10.11.1
login.nitj.in. IN A 10.10.1
 
Old 10-30-2016, 12:46 PM   #5
saksham0161
LQ Newbie
 
Registered: Oct 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
So final zone file should look like this?

Code:
$TTL 604800
@ IN SOA ns1.login.nitj.in. admin.login.nitj.in. (
8 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL

login.nitj.in. IN NS ns1.login.nitj.in.
login.nitj.in. IN A 10.10.11.1

and can you please clarify me the meaning of line
Code:
@ IN SOA ns1.login.nitj.in. admin.login.nitj.in. (
 
Old 10-30-2016, 02:04 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
So final zone file should look like this?
Nope.
You need to add the A RR also for ns1.login.nitj.in or else it could not be resolved. Take a look again at my previous post.
And don't forget to increase the serial and reload the zone, so named reads the changes you've done.


Quote:
and can you please clarify me the meaning of line

@ IN SOA ns1.login.nitj.in. admin.login.nitj.in. (
This is the SOA RR of the zone file.

Regards
 
1 members found this post helpful.
  


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
[SOLVED] problem with bind9 configuration Avior Linux - Server 3 05-12-2015 07:55 AM
Bind9 configuration MX record IvanMP Linux - Networking 1 09-10-2012 10:57 AM
Bind9 Configuration Confusion debianfan Linux - Server 13 04-03-2010 08:14 PM
BIND9 configuration help... nali27 Linux - Server 3 09-28-2009 11:34 AM
Configuration problem bind9 poiuytrez Linux - Networking 9 06-13-2009 12:22 AM

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

All times are GMT -5. The time now is 07:49 PM.

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