[Pdns-users] Internal DNS for .LAN Domain
Steven Christensen
sdchristen at gmail.com
Sun Feb 23 23:42:09 UTC 2020
This isn't working... any ideas?
Added to database fine...
-------------------------------------------------
INSERT INTO domains (name, type) values ('1.168.192.in-addr.arpa',
'MASTER');
INSERT INTO domains (name, type) values ('lan', 'MASTER');
INSERT INTO records (domain_id, name, content, type,ttl,prio)
VALUES (1,'lan','localhost admin.example.com 1 10380 3600 604800
3600','SOA',86400,NULL);
INSERT INTO records (domain_id, name, content, type,ttl,prio)
VALUES (2,'1.168.192.in-addr.arpa','localhost admin.example.com 1 10380
3600 604800 3600','SOA',86400,NULL);
INSERT INTO records (domain_id, name, content, type,ttl,prio)
VALUES (1,'lan','localhost','NS',86400,NULL);
INSERT INTO records (domain_id, name, content, type,ttl,prio)
VALUES (2,'1.168.192.in-addr.arpa','localhost','NS',86400,NULL);
INSERT INTO records (domain_id, name, content, type,ttl,prio)
VALUES (1,'dns1','192.168.86.254','A',3600,NULL);
INSERT INTO records (domain_id, name, content, type,ttl,prio)
VALUES (2,'192.168.1.254','dns1','PTR',3600,NULL);
-----------------------------------------------------------------------------
[root at dns1 pdns]# nslookup
> server
Default server: 192.168.1.254
Address: 192.168.1.254#53
> 192.168.1.254
** server can't find 254.1.168.192.in-addr.arpa: NXDOMAIN
> dns1
Server: 192.168.1.254
Address: 192.168.1.254#53
** server can't find dns1: REFUSED
> dns1.lan
Server: 192.168.1.254
Address: 192.168.1.254#53
** server can't find dns1.lan: NXDOMAIN
> .lan
nslookup: '.lan' is not a legal name (empty label)
----------------------------------------------------------------------------------
/etc/hosts only has 127.0.0.1 localhost
/etc/resolv.conf only has server 192.168.1.254
----------------------------------------------------------------------------------
sort of works?
[root at dns1 pdns]# ping dns1.lan
PING dns1.lan(dns1.lan (fe80::4637:e6ff:fec4:a391%eno1)) 56 data bytes
64 bytes from dns1.lan (fe80::4637:e6ff:fec4:a391%eno1): icmp_seq=1 ttl=64
time=0.043 ms
64 bytes from dns1.lan (fe80::4637:e6ff:fec4:a391%eno1): icmp_seq=2 ttl=64
time=0.049 ms
64 bytes from dns1.lan (fe80::4637:e6ff:fec4:a391%eno1): icmp_seq=3 ttl=64
time=0.061 ms
-----------------------------------------------------------------
etc/pdns/pdns.conf
launch=gmysql
gmysql-host=localhost
gmysql-user=pdns
gmysql-password=XXXXX
gmysql-dbname=powerdns
master=yes
---------------------------------------------
firewall-cmd --add-service=dns --permanent
firewall-cmd --reload
-----------------------------------------------------------------
Anything else I can post that would help?
---------------------------------------------------------------
Thanks,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20200223/077b7e7e/attachment.htm>
More information about the Pdns-users
mailing list