LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2022, 02:18 AM   #1
RayleighPopo
LQ Newbie
 
Registered: Jul 2022
Posts: 4

Rep: Reputation: 0
DNS Configuration


my forward dig shows the following

; <<>> DiG 9.16.1-Ubuntu <<>> ns.pathcom @103.176.243.11
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4073
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 0cb34e3d5872d69a0100000062d8fd3e38352357b4e88fde (good)
;; QUESTION SECTION:
;ns.pathcom. IN A

;; AUTHORITY SECTION:
ns.pathcom. 604800 IN SOA ns.pathcom. root.ns.pathcom. 2 604800 86400 2419200 604800

;; Query time: 0 msec
;; SERVER: 103.176.243.11#53(103.176.243.11)
;; WHEN: Thu Jul 21 07:16:14 UTC 2022
;; MSG SIZE rcvd: 108

my reverse dig shows the following

; <<>> DiG 9.16.1-Ubuntu <<>> -x 103.176.243.11 @103.176.243.11
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28984
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: f8b727fd37f9e5600100000062d8fd7280ee33dd4557ab5a (good)
;; QUESTION SECTION:
;11.243.176.103.in-addr.arpa. IN PTR

;; ANSWER SECTION:
11.243.176.103.in-addr.arpa. 604800 IN PTR ns.pathcom.

;; Query time: 0 msec
;; SERVER: 103.176.243.11#53(103.176.243.11)
;; WHEN: Thu Jul 21 07:17:06 UTC 2022
;; MSG SIZE rcvd: 108


i am not able to resolve any pages using this as the dns
on nslookup
website : query refused
shows

please help in solving
 
Old 07-21-2022, 04:07 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Post your zone files and the resolver config of the box you're doing the nslookup on.

Are you trying to do internal DNS lookups for a made up domain pathcom?
 
Old 07-22-2022, 12:13 AM   #3
RayleighPopo
LQ Newbie
 
Registered: Jul 2022
Posts: 4

Original Poster
Rep: Reputation: 0
I am trying to create a dns server for pathcom domain which i will register in the future, i am using a public ip

my named.conf.options file


options {
directory "/var/cache/bind";


forwarders {
8.8.8.8;
8.8.4.4;
};


dnssec-validation auto;

listen-on-v6 { any; };

recursion yes;
forward only;
listen-on { any;};
allow-query { any; };
allow-transfer {none;};


};

my named.conf.local file

//forward zone

zone "ns.pathcom" IN {

type master;

file "/etc/bind/ns.pathcom.db";

allow-update { none; };

};



//reverse zone

zone "243.176.103.in-addr.arpa" IN {

type master;

file "/etc/bind/r.ns.pathcom.db";

allow-update { none; };

};



my forward lookup file

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.pathcom. root.pathcom. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL

;
@ IN NS ns.pathcom.
ns IN A 103.176.243.11
@ IN AAAA ::1


my reverse lookup file

;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.pathcom. root.pathcom. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.pathcom.
11 IN PTR ns.pathcom.


these are the only changes i have made

my system is running on ubuntu 20.04.4 lts and the dns for the server is the google dns
 
Old 07-22-2022, 04:16 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by TenTenths View Post
Post your zone files and the resolver config of the box you're doing the nslookup on.
You didn't include the resolver config file of the box you're doing the nslookup on.
 
Old 07-22-2022, 04:20 AM   #5
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by RayleighPopo View Post
my forward lookup file
Code:
;
; BIND data file for local loopback interface
;
$TTL	604800
@	IN	SOA	ns.pathcom. root.pathcom. (
			      2		; Serial
			 604800		; Refresh
			  86400		; Retry
			2419200		; Expire
			 604800 )	; Negative Cache TTL

;
@	IN	NS	ns.pathcom.
ns	IN	A	103.176.243.11
@	IN	AAAA	::1
Here you create a zone ns.pathcom. and in that zone you create one A record for "ns", so what you're creating is a record ns.ns.pathcom
 
Old 07-24-2022, 03:04 PM   #6
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
You have forward only set. This means forward but don't look for the answer itself if it fails. You probably want forward first, which
queries the forwarders THEN the local server (to see your zones).
 
Old 07-28-2022, 03:10 AM   #7
RayleighPopo
LQ Newbie
 
Registered: Jul 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks @TenTenths

Its working now
 
  


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
LXer: Doggo Is A DNS Lookup Utility With Colorful Output, DNS-overTLS and DNS-over-HTTPS Support LXer Syndicated Linux News 0 04-07-2021 02:30 AM
A DNS learner's question->Is my DNS configuration right? saagar Linux - Newbie 4 01-12-2009 08:44 AM
DNS configuration and configuration file in RHEL5 remo1225 Linux - Newbie 1 02-20-2008 04:25 AM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
dns question -- new to dns gadhiraju Linux - Networking 7 05-09-2001 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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