Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pdnsd - CNames and Names without domain
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3239
Location: de

PostPosted: Sun Nov 06, 2016 12:29 am    Post subject: pdnsd - CNames and Names without domain Reply with quote

Hi there,

I'm currently trying to get Pdnsd running. And I got some trouble with 2 things. Goal is:
  • local zone with my computers
  • blocking ads via host file


Configuration
Code:
rr {
   name = blechnet.de;
   reverse=on;
   owner = dns.blechnet.de;
   soa = blechnet, musv.gmx.de, 42, 86400, 900,86400, 86400;
   a = 192.168.109.11;
}

rr { name = fritzbox.blechnet.de; reverse = on; a = 192.168.109.1; }
rr { name = fritzszb.blechnet.de; reverse = on; a = 192.168.110.1; }
rr { name = fritzmun.blechnet.de; reverse = on; a = 192.168.111.1; }
rr { name = clp315w.blechnet.de; reverse = on; a = 192.168.109.10; }
rr { name = nas.blechnet.de; reverse = on; a = 192.168.109.11; }
################
rr { name = nas.blechnet.de; cname = wiki.blechnet.de; }



1. CNames
Code:
ping wiki
ping: unknown host wiki


And the logfile tells me:
Code:
Nov 06 01:22:55 nas pdnsd[3837]: 1 11/06 01:22:55| Received query (msg len=34).
Nov 06 01:22:55 nas pdnsd[3837]: 1 11/06 01:22:55| Flags: RD
Nov 06 01:22:55 nas pdnsd[3837]: 1 11/06 01:22:55| Questions are:
Nov 06 01:22:55 nas pdnsd[3837]: 1 11/06 01:22:55|    qc=IN (1), qt=A (1), query="wiki.blechnet.de."
Nov 06 01:22:55 nas pdnsd[3837]: 1 11/06 01:22:55| Starting cached resolve for: wiki.blechnet.de., query A
Nov 06 01:22:55 nas pdnsd[3837]: 1 11/06 01:22:55| Trying name servers.
Nov 06 01:22:55 nas pdnsd[3837]: 1 11/06 01:22:55| No server is marked up and allowed for this domain.
Nov 06 01:22:55 nas pdnsd[3837]: 1 11/06 01:22:55| Outbound msg len 34, tc=0, rc="server failed"
Nov 06 01:22:55 nas pdnsd[3837]: 1 11/06 01:22:55| Answering to: 192.168.109.20, source address: 192.168.109.11
Nov 06 01:22:55 nas pdnsd[3837]: 2 11/06 01:22:55| Received query (msg len=34).
Nov 06 01:22:55 nas pdnsd[3837]: 2 11/06 01:22:55| Flags: RD
Nov 06 01:22:55 nas pdnsd[3837]: 2 11/06 01:22:55| Questions are:
Nov 06 01:22:55 nas pdnsd[3837]: 2 11/06 01:22:55|    qc=IN (1), qt=A (1), query="wiki.blechnet.de."
Nov 06 01:22:55 nas pdnsd[3837]: 2 11/06 01:22:55| Starting cached resolve for: wiki.blechnet.de., query A
Nov 06 01:22:55 nas pdnsd[3837]: 2 11/06 01:22:55| Trying name servers.
Nov 06 01:22:55 nas pdnsd[3837]: 2 11/06 01:22:55| No server is marked up and allowed for this domain.
Nov 06 01:22:55 nas pdnsd[3837]: 2 11/06 01:22:55| Outbound msg len 34, tc=0, rc="server failed"
Nov 06 01:22:55 nas pdnsd[3837]: 2 11/06 01:22:55| Answering to: 192.168.109.20, source address: 192.168.109.11
Nov 06 01:22:55 nas pdnsd[3837]: 3 11/06 01:22:55| Received query (msg len=22).
Nov 06 01:22:55 nas pdnsd[3837]: 3 11/06 01:22:55| Flags: RD


What's wrong in my config? Why can't pdnsd find the Cname entry?

2. Entries without domain
I would like Pdnsd to resolve hostnames without any domain, e.g. dig nas @mydomain.de. I know, for this reason there's a domain and search entry in resolv.conf. But i wonder if pdnsd couldn't handle that by itself.
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3239
Location: de

PostPosted: Sun Nov 06, 2016 1:03 am    Post subject: Reply with quote

Found the solution for the first problem:

Instead of:
Code:
rr { name = nas.blechnet.de; cname = wiki.blechnet.de; }   

it has to be:
Code:
rr { name = blechnet.blechnet.de; cname = nas.blechnet.de; }   
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum