Domain Name System (DNS) is a service that provides the resolution of host names to IP addresses.

learn more… | top users | synonyms

103
votes
14answers
141k views

How can I resolve a hostname to an IP address in a Bash script?

What's the most concise way to resolve a hostname to an IP address in a Bash script? I'm using Arch Linux.
1
vote
2answers
723 views

Command/scripts to check the Reverse DNS Lookup time

I am working on a project in which one master communicates with numbers of slaves. For that it has to make connection with hosts in network. But sometimes it hangs. I think that the reason behind is ...
59
votes
11answers
178k views

How do I set my DNS on Ubuntu 14.04?

Most of the info I see online says to edit /etc/resolv.conf, but any changes I make there just get overridden. $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by ...
0
votes
1answer
6k views

CentOS 6 not regestering new hostname on Windows Server 2003

I rebuilt a Windows 7 Workstation with CentOS 6.5. The Windows 7 had a host name aaa attached to domain ddd.local. The new CentOS hostname is bbb. When I try to ping it: $ ping bbb ping: unknown ...
7
votes
2answers
16k views

Why dig reports the dns server as 127.0.0.1 when I'm using a external DNS?

I use unbound and usually use openDNS as my DNS server. When I run dig google.com say I get SERVER: 127.0.0.1#53(127.0.0.1). What exactly is this thing listening on port #53? is this unbound or is it ...
-1
votes
0answers
21 views

Slow network for same sites (Google mainly)

Various sites are too slow and in many cases not open. Site like chrome web store and Youtube. This just occur with Linux, others machine in the same network works perfectly Strangely, same computer ...
9
votes
2answers
13k views

Is there a way to get the Public DNS address of an instance?

I have a project wherein I need to update configuration files each time an EC2 instance is booted with the Public DNS address of the current instance. I'll be using Perl or Sed for this, so that's ...
1
vote
0answers
22 views

Using Ubuntu Server machine as a DHCP and DNS server to forward URL's to IP addresses

I'm inexperienced with Linux servers but I've done okay so far - basically I want this machine to dish out IP addresses via DHCP (done) and then I also want it to act as a DNS server that simply sends ...
1
vote
1answer
39 views

nc command can't lookup DNS name

I have lots of clients need to check if the port is opened on remote server. I use nc command to do this job, however it always give out DNS lookup failure, but I can successfully find the DNS record ...
2
votes
0answers
15 views

Is it possible to mix zones with DNSSEC enabled and disabled in BIND?

I have a dozen domains configured in a set of zones in BIND and I need to add a new one with DNSSEC enabled. If I enable DNSSEC: options { dnssec-enable yes; dnssec-validation yes; }; Will ...
0
votes
0answers
35 views

enable/disable domain redirection

My router can be joined by clientes. enable // I'd like to redirect all trafic to an IP (13.37.42.1), I mean any IP and any domain. disable // Then I d like to be able to disable it. Then clients ...
8
votes
5answers
19k views

DNS queries not using nscd for caching

I'm trying to use nscd (Nameservices Cache Daemon) to cache DNS locally so I can stop using Bind to do it. I've gotten it started and ntpd seems to attempt to use it. But everything else for hosts ...
0
votes
1answer
46 views

Forward traffic from first to second server

I have 2 Servers, 1 normal Server without ddos protection and 1 ddos protected v-Server, i try to forward traffic through the v server to the main server. So if someone access to my v-server like tcp ...
2
votes
2answers
85 views

Keep losing resolv.conf configurations

Every time i reboot raspi this resolv.conf files is cleaned. i normally add on this file the openDNS ips like below: # OpenDNS IPv4 nameservers nameserver 208.67.222.222 nameserver 208.67.220.220 I ...
0
votes
0answers
22 views

How Can I Set Up DNS Server on Virtual Network w/out Internet?

I'm trying to set up a virtual network populated with 4 CentOS 7 servers for testing purposes. I have successfully configured a Kerberos server and a secondary Kerberos server. However, when it ...
3
votes
1answer
483 views

Simplest way to set up multiple subdomains to separate VMs running on single host

Problem: I´m planning to set up several virtualized centos, rhel or ubuntu guest machines on a single centos host server (most likely using KVM). Each guest VM is running an instance of a webapp + ...
0
votes
2answers
29 views

Add more DNS nameservers in OpenBSD

I wish to add more DNS nameservers such as 8.8.8.8 in OpenBSD 5.7. I understand that the current version of OpenBSD allows up to a maximum of three DNS nameservers. I have read the man pages related ...
1
vote
2answers
2k views

Split DNS (bind9), match-clients any doesn't work?

I've been fighting with this for the last few days. A few of my entries have external and internal IP's. My internal network is 10.0.0.0/8. When I nslookup pc1.clase.net internally it responds with ...
0
votes
1answer
187 views

named.run file deleted but data left on disk?

Today I had a name-server stop resolving DNS due to the /var directory being full from the named.run cache build up. I tried removing all the files using: rm -rf name* However, although running ls ...
0
votes
1answer
35 views

I'm in doubt if I set up my dns chain correctly

I want to use DNSCrypt to encrypt all my DNS packets, so I tried to do this: on /etc/rc.local : /usr/local/sbin/dnscrypt-proxy -a 127.0.0.1:40 -u _dnscrypt-proxy -d -l /dev/null -R ...
1
vote
2answers
216 views

Avahi commands not working in CentOS

I want to use Avahi tools for mDNS service discovery in CentOS 6.6. I have installed the following packages: avahi, avahi-tools, nss-mdns. I checked the Avahi daemon and it is running: $ service ...
1
vote
2answers
1k views

ping: unknown host with iptables enabled

I can't ping www.google.com. However I can ping the IP address: ping 74.125.237.142 At first, I thought it is a problem with my DNS settings. But I checked my resolv.conf, hosts, and hostname ...
1
vote
2answers
3k views

How can I update my dynamic DNS under OpenWRT?

I have an OpenWrt 10.03, and I need to update my dynamic DNS account (e.g., OpenDNS or DYNDNS) when my IP changes. How can I do this from the terminal?
0
votes
1answer
1k views

Slow DNS resolve from curl/lynx etc

I have a strange issue with DNS resolving: Root of the problem is that I get curl errors: "Error executing HTTP request: name lookup timed out". Tried to ping some sites, all resolved fine (and fast). ...
-2
votes
2answers
45 views

Preventing internal domains names being resolved with a external DNS

I have a site with a public registered domain name on Godaddy, let's say xyz.com. Unfortunately all internal systems and DNS were set with the same domain name internally. On a systems with access ...
0
votes
0answers
12 views

Bind config options (recursion and forwarders)

I am trying to setup bind to authorize one zone and cash all other requests from provider nameserver. Do two options recursion and forwarders have linked values and affect each other? Should I list ...
2
votes
1answer
82 views

nslookup, dig, firefox ignoring /etc/hosts file entries

There is something terribly wrong with my current Debian install. Most programs like firefox, nslookup, dig etc. are ignoring entries in /etc/hosts file, actually I use this file for Ad-blocking. an ...
1
vote
1answer
48 views

Alias name for ip address [closed]

I have a website which is hosted in local Server (CentOS 5.x) (Hostname: xxx.yyy.local, IP : 192.168.5.25). I can browse the site typing the server IP address in the browser from my Local Network e.g: ...
1
vote
1answer
20 views

dhcp3-server and strange DNS/NTP servers

I have problem with dhcp3-server 3.1.1-6+lenny4. My dhcp-server sends "strange" IPs for DNS and NTP servers in DHCP ACK despite configuration which doesn't have those IPs. In ACK packet we can see the ...
8
votes
2answers
23k views

How to read the local DNS cache contents?

I know that on Windows I can issue ipconfig /displaydns and I see the local DNS's cache content. How can I list the DNS's cache content in Linux? I would like to get as much as cross-distro solution ...
0
votes
0answers
25 views

Misc file corruption freebsd 10 and dns zone file

The computer is a VPS from Vultr. They tell me that "since it is loaded into RAM and not really a drive, nothing on the host would be causing this." One particular file, my zone file, will come up ...
1
vote
1answer
27 views

any option to ignore a dns server ip from /etc/resolv.conf when doing nslookup?

We have a list of dns server IPs in /etc/resolv.conf. When doing nslookup for a particular scenario we would like to ingore the second entry below, so that naming resolution occurs via other 3 DNS ...
0
votes
2answers
44 views

Bind doesn't resolve his authoritative zones

I'm currently setting a Bind 9 server on a CentOS 7 system, but I have some kind of unexpected behavior (even though it worked great in my VM). When I want to retrieve records from the zones it is ...
2
votes
0answers
60 views

OpenVPN, resolvconf, and DNS domain resolution

While at site1, I need to connect to site2 via OpenVPN. Once connected, the OpenVPN site2 pushes a DNS nameserver and domain search options. This causes all name resolutions for site1 to fail. ...
1
vote
1answer
21 views

DNS server's not working in subnet

I have installed two virtual machines on my PC - Fedora Server and Fedora Live Workstation. Fedora Server has two network interfaces - one configured as NAT interface but other one - for working in ...
2
votes
1answer
46 views

Resolv.conf modification breaks DNS [closed]

This is an odd one but I seem to be unable to solve it. I'm creating a visual user interface to modify internet settings on Debian Wheezy (and other debian versions/derivatives that are incidentally ...
0
votes
3answers
176 views

DNS Issue in ubuntu 14.04

I am facing DNS resolving issue sometimes in my Ubuntu 14.04.2 LTS trusty. I have configured my system with network manager to work with static IP assignment. I have also tried by changing DNS server ...
0
votes
1answer
2k views

How can I use CNAME in Bind properly?

I'm new to Bind/DNS and want to point/map SMTP, webmail and IMAP to my domain but a check in nslookup is failing. How can I nslookup SMTP this way? The error I get is: smtp.stylez24.com: NXDOMAIN ...
2
votes
2answers
1k views

Why is sendmail appending my hostname to unknown destination domain?

I am testing the handling of mail bouncing. When I send a test email to a bad domain, for example: eric@blahblahfail.org, I get the following error in my log: SYSERR(root): ...
5
votes
1answer
7k views

Using DNSMasq for Local Hostname Resolution

I'm working on setting up a home intranet for me and my roommates. My idea is that we'll be able to store things like past utility bills in a place that's more accessible than a drawer in the kitchen ...
3
votes
4answers
30k views

Ubuntu: How to configure DNS servers in /etc/network/interfaces correctly for resolvconf?

All examples I have seen of configurations (/etc/network/interfaces) showed that you configure an interface and then underneath that gave the dns-* lines such as: auto eth0 iface eth0 inet static ...
3
votes
3answers
3k views

Ping IP works, nslookup fails. New Kernel

I am compiling my own 3.14 kernel. I fear I may have left out some important networking feature to get DNS working. I can't resolve domain names. I can ping my DNS server. I can resolve using that ...
0
votes
2answers
29 views

single dns server in a private network

I have a netgear wireless router, single web server , 100 clients with 192.168.0.0/24 network. I haven't Internet connection and I am not connected to outside world. Now my goal is to provide the ...
0
votes
2answers
30 views

How are the entries in resolv.conf automatically added?

I have installed a fresh Debian Jessie distribution today. It properly configured IP address through DHCP and also added nameserver entry in /etc/resolv.conf. Could you please explain how are those ...
0
votes
0answers
92 views

named-checkzone fails reverse zone file with NS has no address records (A or AAAA)

I'm setting up a private DNS server using bind9 on raspian. I'm receiving this error on my reverse zone file: named-checkzone dthacker.org db.dthacker.org.inv root@dns:/etc/bind# named-checkzone ...
38
votes
7answers
53k views

What DNS servers am I using?

How can I check which DNS server am I using (in Linux)? I am using network manager and a wired connection to my university's LAN. (I am trying to find out why my domain doesn't get resolved)
2
votes
1answer
67 views

Bind DNS A Record priority

I am working on 2 scenarios: Scenario 1: DNS A Record with 2 IPs [Default it works on Round Robin], but I am looking for option where if First IP not reachable then share 2nd IP. Scenario 2: DNS A ...
0
votes
0answers
61 views

Can you install a Smart DNS server on Ubuntu server?

I'm a fan of smart-DNS services like "unblock" and so, as it gives me the VPN functionality (the part of the functionality that I need..) and saves me of server resources, such as traffic. I was ...
4
votes
2answers
216 views

How to make my server use the hosts file to resolve names?

I have a computer with Debian at home, acting as a server with two Ethernet cards: eth0 connected to the router in DHCP mode and eth1 to a switch (static address) that holds four more computers. I'm ...
2
votes
3answers
1k views

Change default DNS on openvpn connect

I am using Network Manager on Ubuntu 12.10 to connect to an openvpn server. The connection works without problems. However, when I connect, I would like to change my default DNS server to a server ...