Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36180

pdnsd configuration

$
0
0
Hi,

I'm using Fedora 18 (64bit) on a laptop, and have a few issues with my pdnsd-configuration. The daemon itself works as it should, but when I start my laptop, pdnsd assumes the dns-servers it uses are offline. The reason for this , I think , is that I use disk encryption and networkmanager takes a few seconds to establish a connection. By that time , the pdnsd timeout has expired, so it assumes I have no link to dns servers.
If I issue
Code:

sudo pdnsd-ctl server 0 retest
The problem resolves itself. I've allready increased the server timeout values, but to no avail. My next idea was to create a local script that issues the above command after login (or after networkmanager connects). Is there a way via systemd to tell pdnsd to wait for a connection ?
Suggestions welcome,

Thanks in advance,

This is the relevant section of my pdnsd.conf, it might well be that I made an error here:
Code:

global {
        perm_cache=1024;
        cache_dir="/var/cache/pdnsd";
#        pid_file = /var/run/pdnsd.pid;
        run_as="pdnsd";
        server_ip = 127.0.0.1;  # Use eth0 here if you want to allow other
                                # machines on your network to query pdnsd.
        status_ctl = on;
#        paranoid=on;      # This option reduces the chance of cache poisoning
                          # but may make pdnsd less efficient, unfortunately.
        query_method=udp_tcp;
        min_ttl=15m;      # Retain cached entries at least 15 minutes.
        max_ttl=1w;        # One week.
        timeout=30;        # Global timeout option (10 seconds).
        neg_domain_pol=on;
        udpbufsize=1024;  # Upper limit on the size of UDP messages.
}

# The following section is most appropriate if you have a fixed connection to
# the Internet and an ISP which provides good DNS servers.
server {
        label= "myisp";
        ip = 91.236.239.11,109.235.51.12;  # Put your ISP's DNS-server address(es) here.
        proxy_only=on;    # Do not query any name servers beside your ISP's.
                          # This may be necessary if you are behind some
                          # kind of firewall and cannot receive replies
                          # from outside name servers.
        timeout=30;        # Server timeout; this may be much shorter
                          # that the global timeout option.
        uptest=if;        # Test if the network interface is active.
        interface=wlan0;    # The name of the interface to check.
        interval=15m;      # Check every 10 minutes.
        purge_cache=off;  # Keep stale cache entries in case the ISP's
                          # DNS servers go offline.
        edns_query=yes;    # Use EDNS for outgoing queries to allow UDP messages
                          # larger than 512 bytes. May cause trouble with some
                          # legacy systems.
#        exclude=.thepiratebay.org,  # If your ISP censors certain names, you may
#                .thepiratebay.se,  # want to exclude them here, and provide an
#                .piratebay.org,            # alternative server section below that will
#                .piratebay.se;            # successfully resolve the names.
}


Viewing all articles
Browse latest Browse all 36180

Trending Articles