Difference between IP address and DNS?
SurferdudeHB
Member Posts: 199 ■■■□□□□□□□
in CCNA & CCENT
What's the difference when pinging/ pointing using the IP address or DNS?
Comments
-
RTmarc Member Posts: 1,082 ■■■□□□□□□□Do you understand the relationship between an IP address and DNS?
-
SurferdudeHB Member Posts: 199 ■■■□□□□□□□I understand that DNS is the translation of an IP address into a alias name.
So for example, what's the difference when you type in Yahoo! instead of http://10.163.3.14 -
Slowhand Mod Posts: 5,161 ModSurferdudeHB wrote: »I understand that DNS is the translation of an IP address into a alias name.
So for example, what's the difference when you type in Yahoo! instead of http://10.163.3.14
Free Microsoft Training: Microsoft Learn
Free PowerShell Resources: Top PowerShell Blogs
Free DevOps/Azure Resources: Visual Studio Dev Essentials
Let it never be said that I didn't do the very least I could do. -
Forsaken_GA Member Posts: 4,024DNS has more of an effect than you might think. When weird things start popping up, I've learned the hard way that the first thing to check is DNS. The real culprits are the reverse-DNS lookups.
As an example -
Recently we had our DNS servers go offline for a period of 10 minutes or so while a load balancer had to be rebooted. That cascaded into some seriously weird errors, the weirdest of which were mysql related.
The mysql server was accepting connections over a private backend, with private IP addresses. Absolutely nothing touchable, absolutely nothing being routed, just a bunch of servers with their second NIC's plugged into a common switch.
The mysql server was stalling and piling up connections, and as a result, all of the servers that depending on pulling data from mysql were unusable.
The problem? mysql does reverse dns lookups on all IP's by default. So when it sees a connection for 10.10.100.43, it still tries to do a reverse, and in the normal course of things, that returns nothing... but it returns it *immediately*, so the connection process moves on. If the DNS server(s) that are configured to be queried aren't available, then the reverse query is stuck in limbo waiting for the lookup attempt to fail, which causes things to backup, and other things to timeout, and so on and so forth. -
captobvious Member Posts: 648SurferdudeHB wrote: »I understand that DNS is the translation of an IP address into a alias name.
So for example, what's the difference when you type in Yahoo! instead of http://10.163.3.14
Shouldn't this be in the A+ forum? -
SurferdudeHB Member Posts: 199 ■■■□□□□□□□captobvious wrote: »Shouldn't this be in the A+ forum?
Na.. I'm studying for the CCENT so this is my home -
Met44 Member Posts: 194So for example, what's the difference when you type in Yahoo! instead of http://10.163.3.14
When you type "Yahoo.com" into a browser's address bar and press Enter, your computer sends out a DNS request to the DNS server you have configured in your IP settings to ask what the IP address of "Yahoo.com" is. After the reply comes back, your computer uses the IP address contained in the DNS response to establish a connection with "www.yahoo.com".
If you provided an IP address instead, then no DNS lookup would be attempted. Your computer would simply attempt to initiate a TCP session with whatever IP address you provided.
The difference is the DNS lookup. -
BroadcastStorm Member Posts: 496IP address - 1.1.1.1
netbios - one
FQDN - one.two.com
on windows OS there is lmhosts and hosts file, do a google and start reading about it, this are the basic form. -
Forsaken_GA Member Posts: 4,024If you provided an IP address instead, then no DNS lookup would be attempted.
Be very careful with statements like that. A very large amount of software does indeed do a dns lookup when given an IP, they just don't do a forward dns lookup. Even IP's are subject to dns queries. -
Met44 Member Posts: 194If you provided an IP address instead, then no DNS lookup would be attempted.
A good point, but in the example that statement was extracted from, the browser will not attempt a reverse lookup for www.yahoo.com. -
captobvious Member Posts: 648SurferdudeHB wrote:I understand that DNS is the translation of an IP address into a alias name.
So for example, what's the difference when you type in Yahoo! instead of http://10.163.3.14captobvious wrote: »Shouldn't this be in the A+ forum?
Sorry, I meant on the Network+ forum. This is basic networking stuff.