Posts

Showing posts with the label Dns

Change Default DNS Server In Arch Linux

Answer : Arch Wiki explains: either use a resolv.conf.head file, or write-protect /etc/resolv.conf . The file /etc/resolv.conf generally should not be edited by hand. Most linux systems use a program called resolvconf that will automatically generate /etc/resolv.conf every time you connect to the LAN (as the post describes). Instead, you want to edit the file /etc/resolvconf.conf . Check man resolvconf for more information.

Can (domain Name) Subdomains Have An Underscore "_" In It?

Answer : Most answers given here are false . It is perfectly legal to have an underscore in a domain name. Let me quote the standard, RFC 2181, section 11, "Name syntax": The DNS itself places only one restriction on the particular labels that can be used to identify resource records. That one restriction relates to the length of the label and the full name. [...] Implementations of the DNS protocols must not place any restrictions on the labels that can be used. In particular, DNS servers must not refuse to serve a zone because it contains labels that might not be acceptable to some DNS client programs. See also the original DNS specification, RFC 1034, section 3.5 "Preferred name syntax" but read it carefully. Domains with underscores are very common in the wild. Check _jabber._tcp.gmail.com or _sip._udp.apnic.net . Other RFC mentioned here deal with different things. The original question was for domain names . If the question is for...

Android - Change DNS For Mobile Data Without Using An App

Answer : I did not find a way to reliably do it without an app. I often use OpenDNS Family Shield, but sometimes it blocks me to visit some particular hacking site and then I need to quickly and easily change the DNS servers. I used to use Set DNS but it stopped to work in Android 4.3 and further, so I created Override DNS, a new app which mimics Set DNS' behaviour, but it's updated to work even in Lollipop. It has some other nice feature like a PIN protection ad a Wi-Fi SSID filter, too. The only way I can see to do it without an app is something like an iptables rule to redirect any traffic going to udp/53 to some other ip. A similar procedure is shown in a XDA thread. I paste here the iptables rules for completeness (I did not tested them) $IPTABLES -t nat -D OUTPUT -p tcp --dport 53 -j DNAT --to-destination 208.67.222.222:53 || true $IPTABLES -t nat -D OUTPUT -p udp --dport 53 -j DNAT --to-destination 208.67.222.222:53 || true $IPTABLES -t nat -I OUTPUT -p t...

Can Ping IP Address And Nslookup Hostname But Cannot Ping Hostname Temporarily In Windows

Answer : I faced the same problem in my network. When you use this command: ping icecream It uses WINS server since you have used icecream not icecream.my.domain . When looking for such words, Windows looks for NETBIOS names, but when you look for complete domain records, it will look in the DNS server. You can use one of the solutions below: Make sure you have correct records for that station in your WINS server. Use the complete domain name instead of using the host file. E.g. icecream.my.domain You don't have DNS suffixes configured. Either configure them, or use FQDN like this and it should work: ping icecream.my.domain