dnsmasq, serve different ip addresses based on interface used

You can run two instances of dnsmasq, each with a different interface it listens on. You can use the –interface=X and –bind-interfaces options for that. By default, it also binds the loopback device lo and will fail if two processes try to bind it. Use –except-interface=lo to avoid that. dnsmasq –interface=eth0 –except-interface=lo –bind-interfaces –dhcp-range=192.168.0.2,192.168.0.10,12h dnsmasq … Read more

How to view DNS cache in OSX?

mDNSResponder (multicast DNS daemon) SIGINFO signal can dump a snapshot summary of the internal state to /var/log/system.log, including the cache details. To do this: Keep system log opened in one terminal: tail -f /private/var/log/system.log Send a SIGINFO signal to mDNSResponder from another terminal: sudo killall -INFO mDNSResponder Then check the logs in first terminal, you … Read more

Dockerfile: Docker build can’t download packages: centos->yum, debian/ubuntu->apt-get behind intranet

PROBLEM Talking to some developers at #docker@freenode, the problem was clear to everyone: DNS and the environment. The build works just fine at a regular Internet connection at home. SOLUTION: This problem occurs in an environment that has a private DNS server, or the network blocks the Google’s DNS servers. Even if the docker container … Read more

Free DNS server for Windows XP/Vista/Win7? [closed]

As a reference: http://sourceforge.net/projects/acrylic/ Acrylic is a local DNS proxy which improves the performance of your computer by caching the responses coming from your DNS servers. I found it to work flawless on every Windows system from XP up to Win8, and it’s open source. And yes, it supports wildcards… it even supports regex for … Read more

dig returns SERVFAIL but +trace works

dig +trace follows the whole chain from the beginning – it queries root servers, then .info servers then your namservers. Thus it avoids any caching resolvers, and also avoids propagation issues. dig +notrace (the default) queries your default DNS resolver (on Linux, whatever specified in /etc/resolv.conf). There’s some problem with that resolver – maybe it’s … Read more

Why ww2 sub domains?

People running large(-ish) sites used to do this when they needed to break up the load between more than one server. One machine would be called www then the next one would be called www2, etc. Today, much better load balancing solutions are available that don’t require you to expose your internal machine naming conventions … Read more

GitHub Pages https/www Redirect

What worked for me: Change your custom domain to be prefixed with www., like this: Save the settings and wait until www.example.com resolves and works. Remove the www. prefix and save again. Wait for browser and DNS caches to invalidate. All combinations should lead to https://example.com/ and no SSL error should appear.

Meaning of the five fields of the ANSWER SECTION in dig query

Reference: http://www.zytrax.com/books/dns/ch15/#answer and http://www.zytrax.com/books/dns/ch8/a.html The first field is the NAME: The domain name being returned The second field (108 in your example) is the TTL in seconds. IN is the CLASS. Here, IN stands for Internet. A is the TYPE. Here, A stands for mapping a domain name to an IPv4 address. The last field … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)