LinuxQuestions.org
Visit Jeremy's Blog.
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 06-09-2015, 03:11 PM   #1
tabrist
LQ Newbie
 
Registered: Jun 2015
Posts: 1

Rep: Reputation: Disabled
DNS doesn't work


Hi,

Today i was configurate DNS serwer falow point:
1. create zone
zone "domain.org"{
type master;
allow-transfer{none;};
file "/etc/bind/pri.domain.org";
}

2 create file pro.domain.org in /etc/bind/
$ORGIN domain.org
$TTL 3600
@ IN SOA ns1.domain.org my.email.domain.org( 2015060903 7200 540 604800 86400);
domain.org 3600 A XXX.XXX.XXX.XXX
mail 3600 A XXX.XXX.XXX.XXX
ns1 3600 A XXX.XXX.XXX.XXX
ns2 3600 A XXX.XXX.XXX.XXX
www 3600 A XXX.XXX.XXX.XXX
* 3600 A XXX.XXX.XXX.XXX
domain.org. 3600 MX 10 mail.domain.org.
domain.org. 3600 NS ns1.domain.org.
domain.org. 3600 NS ns2.domain.org.


check config by
named-checkconf - not return anything

named-checkzone domain.org /etc/bin/pri.domain.org
return zone domain.org/IN: loaded serial 2015060903
OK

dig @127.0.0.1 domain.org
return
; <<>> DiG 9.8.4 <<>> @127.0.0.1 domain.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2556
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;domain.org. IN A

;; ANSWER SECTION:
domain.org. 3600 IN A XXX.XXX.XXX.XXX

;; AUTHORITY SECTION:
domain.org. 3600 IN NS ns1.domain.org.
domain.org. 3600 IN NS ns2.domain.org.

;; ADDITIONAL SECTION:
ns1.domain.org. 3600 IN A XXX.XXX.XXX.XXX
ns2.domain.org. 3600 IN A XXX.XXX.XXX.XXX

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Jan 11 02:00:27 2013
;; MSG SIZE rcvd: 114

and when i done, i delegate domain by add DNS
ns1.domain.org XXX.XXX.XXX.XXX
ns2.domain.org XXX.XXX.XXX.XXX

now page doesnt work, i have cant find serwer.

i try add XXX.XXX.XXX.XXX domain.org in windows hosts and after it, page was work, so i dont know where is problem, can anyonle help me ?


PROBLEM SOLVED, i add "IN" before all record type and it start work

Last edited by tabrist; 06-09-2015 at 05:12 PM.
 
Old 06-10-2015, 08:38 AM   #2
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
If you have fixed your issue please mark it as solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DNS lookup doesn't work, ping, firefox will not work properly lovemov Linux - Networking 2 04-23-2009 03:30 PM
NetworkManager & gprs/ppp DNS: after using wlan/eth0, DNS for ppp doesn't work mtess Linux - Networking 3 03-12-2008 04:31 PM
why doesn't my DNS server work? asit_monty Linux - Networking 2 04-06-2004 09:26 AM
why doesn't my DNS server work? asit_monty Linux - Networking 0 04-06-2004 08:01 AM
DNS doesn't seem to work with RR lhelber Linux - Networking 4 01-14-2004 05:45 PM

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

All times are GMT -5. The time now is 08:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration