Trouble with resolving hostnames on CentOS using Bind The Next CEO of Stack OverflowDNS Server...
How should I support this large drywall patch?
In excess I'm lethal
Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?
At which OSI layer a user-generated data resides?
Unreliable Magic - Is it worth it?
MessageLevel in QGIS3
Can we say or write : "No, it'sn't"?
multiple labels for a single equation
Make solar eclipses exceedingly rare, but still have new moons
What do "high sea" and "carry" mean in this sentence?
Giving the same color to different shapefiles in QGIS
Can you replace a racial trait cantrip when leveling up?
Workaholic Formal/Informal
If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?
What was the first Unix version to run on a microcomputer?
How fast would a person need to move to trick the eye?
Skipping indices in a product
Is there a difference between "Fahrstuhl" and "Aufzug"
Why does the UK parliament need a vote on the political declaration?
Complex fractions
If/When UK leaves the EU, can a future goverment conduct a referendum to join the EU?
Is it ever safe to open a suspicious html file (e.g. email attachment)?
Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?
Can I equip Skullclamp on a creature I am sacrificing?
Trouble with resolving hostnames on CentOS using Bind
The Next CEO of Stack OverflowDNS Server resolves server name but NOT fully qualified domain nameCan't connect to MySql server on remote serverBIND/DNS Issue — Not Seeing New Domainsresolv.conf cache behavior difference? Centos 5.6 vs AMZN LinuxDNS problems on CentOS fresh installHow to correctly configure nameserversDNS BIND on CENTOS 6.3 and domain nameserversCentOS DNS not working - Cannot resolve any hostnamesLocal DNS server is ignored on WindowsHow to configure dnsmasq for dhcp with domain names
I'm taking a course on server administration at school and I have managed to set up virtual hosting in apache and a dns server on a virtual machine. However, I have now set up an old pc to run CentOS and I'm trying the same on that box.
The problem I ran into now is that I can't resolve hostnames from the linux box. I have set up the nameserver in /etc/resolv.conf to the IP of the CentOS machine, but when I try for example
ping google.com I get ping: unknown host google.com
However, when I do ping 66.102.13.105 (which is the Google IP, figured that out by pinging on my mac) I get:
PING 66.102.13.105 (66.102.13.105) 56(84) bytes of data.
64 bytes from 66.102.13.105: icmp_seq=1 ttl=52 time=15.5 ms
Slightly confused why this is happening. Could it be because of my router sitting in between the linux machine and the cable modem? It's a D-Link somethingsomething.
Thanks in advance
domain-name-system centos bind hostname resolv.conf
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I'm taking a course on server administration at school and I have managed to set up virtual hosting in apache and a dns server on a virtual machine. However, I have now set up an old pc to run CentOS and I'm trying the same on that box.
The problem I ran into now is that I can't resolve hostnames from the linux box. I have set up the nameserver in /etc/resolv.conf to the IP of the CentOS machine, but when I try for example
ping google.com I get ping: unknown host google.com
However, when I do ping 66.102.13.105 (which is the Google IP, figured that out by pinging on my mac) I get:
PING 66.102.13.105 (66.102.13.105) 56(84) bytes of data.
64 bytes from 66.102.13.105: icmp_seq=1 ttl=52 time=15.5 ms
Slightly confused why this is happening. Could it be because of my router sitting in between the linux machine and the cable modem? It's a D-Link somethingsomething.
Thanks in advance
domain-name-system centos bind hostname resolv.conf
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
You need to make sure you can reach the DNS server. Also, the DNS server should be configured properly and should be able to query other DNS servers and/or access public DNS servers. You need to provide us with more details about your setup.
– Khaled
Nov 12 '11 at 12:55
Can you paste your named.conf file? It sounds like you are trying to setup a caching server.
– Rilindo
Nov 12 '11 at 17:16
So how does your DNS-server know how to ask about the .com Domain?
– Nils
Nov 12 '11 at 21:35
add a comment |
I'm taking a course on server administration at school and I have managed to set up virtual hosting in apache and a dns server on a virtual machine. However, I have now set up an old pc to run CentOS and I'm trying the same on that box.
The problem I ran into now is that I can't resolve hostnames from the linux box. I have set up the nameserver in /etc/resolv.conf to the IP of the CentOS machine, but when I try for example
ping google.com I get ping: unknown host google.com
However, when I do ping 66.102.13.105 (which is the Google IP, figured that out by pinging on my mac) I get:
PING 66.102.13.105 (66.102.13.105) 56(84) bytes of data.
64 bytes from 66.102.13.105: icmp_seq=1 ttl=52 time=15.5 ms
Slightly confused why this is happening. Could it be because of my router sitting in between the linux machine and the cable modem? It's a D-Link somethingsomething.
Thanks in advance
domain-name-system centos bind hostname resolv.conf
I'm taking a course on server administration at school and I have managed to set up virtual hosting in apache and a dns server on a virtual machine. However, I have now set up an old pc to run CentOS and I'm trying the same on that box.
The problem I ran into now is that I can't resolve hostnames from the linux box. I have set up the nameserver in /etc/resolv.conf to the IP of the CentOS machine, but when I try for example
ping google.com I get ping: unknown host google.com
However, when I do ping 66.102.13.105 (which is the Google IP, figured that out by pinging on my mac) I get:
PING 66.102.13.105 (66.102.13.105) 56(84) bytes of data.
64 bytes from 66.102.13.105: icmp_seq=1 ttl=52 time=15.5 ms
Slightly confused why this is happening. Could it be because of my router sitting in between the linux machine and the cable modem? It's a D-Link somethingsomething.
Thanks in advance
domain-name-system centos bind hostname resolv.conf
domain-name-system centos bind hostname resolv.conf
asked Nov 12 '11 at 12:01
cabaretcabaret
1063
1063
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 6 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
You need to make sure you can reach the DNS server. Also, the DNS server should be configured properly and should be able to query other DNS servers and/or access public DNS servers. You need to provide us with more details about your setup.
– Khaled
Nov 12 '11 at 12:55
Can you paste your named.conf file? It sounds like you are trying to setup a caching server.
– Rilindo
Nov 12 '11 at 17:16
So how does your DNS-server know how to ask about the .com Domain?
– Nils
Nov 12 '11 at 21:35
add a comment |
You need to make sure you can reach the DNS server. Also, the DNS server should be configured properly and should be able to query other DNS servers and/or access public DNS servers. You need to provide us with more details about your setup.
– Khaled
Nov 12 '11 at 12:55
Can you paste your named.conf file? It sounds like you are trying to setup a caching server.
– Rilindo
Nov 12 '11 at 17:16
So how does your DNS-server know how to ask about the .com Domain?
– Nils
Nov 12 '11 at 21:35
You need to make sure you can reach the DNS server. Also, the DNS server should be configured properly and should be able to query other DNS servers and/or access public DNS servers. You need to provide us with more details about your setup.
– Khaled
Nov 12 '11 at 12:55
You need to make sure you can reach the DNS server. Also, the DNS server should be configured properly and should be able to query other DNS servers and/or access public DNS servers. You need to provide us with more details about your setup.
– Khaled
Nov 12 '11 at 12:55
Can you paste your named.conf file? It sounds like you are trying to setup a caching server.
– Rilindo
Nov 12 '11 at 17:16
Can you paste your named.conf file? It sounds like you are trying to setup a caching server.
– Rilindo
Nov 12 '11 at 17:16
So how does your DNS-server know how to ask about the .com Domain?
– Nils
Nov 12 '11 at 21:35
So how does your DNS-server know how to ask about the .com Domain?
– Nils
Nov 12 '11 at 21:35
add a comment |
1 Answer
1
active
oldest
votes
Well, probably the server that you set in resolv.conf is not accessible or it does not provide you an answer for google.com
dig @IP-of-your-dns-server google.com
and
ping IP-of-your-dns-server
Unlikely your router have anything to do with it.
The DNS server is running on the box itself. This is only for testing purposes, because I want to then set my mac's dns server to the test box and be able to use the domainnames I set up there (to fake them). Makes sense? Ping <ip> works, but the dig command doesn't work.
– cabaret
Nov 12 '11 at 16:28
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f330365%2ftrouble-with-resolving-hostnames-on-centos-using-bind%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Well, probably the server that you set in resolv.conf is not accessible or it does not provide you an answer for google.com
dig @IP-of-your-dns-server google.com
and
ping IP-of-your-dns-server
Unlikely your router have anything to do with it.
The DNS server is running on the box itself. This is only for testing purposes, because I want to then set my mac's dns server to the test box and be able to use the domainnames I set up there (to fake them). Makes sense? Ping <ip> works, but the dig command doesn't work.
– cabaret
Nov 12 '11 at 16:28
add a comment |
Well, probably the server that you set in resolv.conf is not accessible or it does not provide you an answer for google.com
dig @IP-of-your-dns-server google.com
and
ping IP-of-your-dns-server
Unlikely your router have anything to do with it.
The DNS server is running on the box itself. This is only for testing purposes, because I want to then set my mac's dns server to the test box and be able to use the domainnames I set up there (to fake them). Makes sense? Ping <ip> works, but the dig command doesn't work.
– cabaret
Nov 12 '11 at 16:28
add a comment |
Well, probably the server that you set in resolv.conf is not accessible or it does not provide you an answer for google.com
dig @IP-of-your-dns-server google.com
and
ping IP-of-your-dns-server
Unlikely your router have anything to do with it.
Well, probably the server that you set in resolv.conf is not accessible or it does not provide you an answer for google.com
dig @IP-of-your-dns-server google.com
and
ping IP-of-your-dns-server
Unlikely your router have anything to do with it.
answered Nov 12 '11 at 16:21
Sandman4Sandman4
3,51511423
3,51511423
The DNS server is running on the box itself. This is only for testing purposes, because I want to then set my mac's dns server to the test box and be able to use the domainnames I set up there (to fake them). Makes sense? Ping <ip> works, but the dig command doesn't work.
– cabaret
Nov 12 '11 at 16:28
add a comment |
The DNS server is running on the box itself. This is only for testing purposes, because I want to then set my mac's dns server to the test box and be able to use the domainnames I set up there (to fake them). Makes sense? Ping <ip> works, but the dig command doesn't work.
– cabaret
Nov 12 '11 at 16:28
The DNS server is running on the box itself. This is only for testing purposes, because I want to then set my mac's dns server to the test box and be able to use the domainnames I set up there (to fake them). Makes sense? Ping <ip> works, but the dig command doesn't work.
– cabaret
Nov 12 '11 at 16:28
The DNS server is running on the box itself. This is only for testing purposes, because I want to then set my mac's dns server to the test box and be able to use the domainnames I set up there (to fake them). Makes sense? Ping <ip> works, but the dig command doesn't work.
– cabaret
Nov 12 '11 at 16:28
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f330365%2ftrouble-with-resolving-hostnames-on-centos-using-bind%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You need to make sure you can reach the DNS server. Also, the DNS server should be configured properly and should be able to query other DNS servers and/or access public DNS servers. You need to provide us with more details about your setup.
– Khaled
Nov 12 '11 at 12:55
Can you paste your named.conf file? It sounds like you are trying to setup a caching server.
– Rilindo
Nov 12 '11 at 17:16
So how does your DNS-server know how to ask about the .com Domain?
– Nils
Nov 12 '11 at 21:35