Linux How-To

The right way to Discover My DNS Server IP Handle in Linux

SEOClerks

DNS (Area Identify System) is a elementary facilitator of a number of networking applied sciences corresponding to mail servers, Web shopping, and streaming providers e.g. Netflix and Spotify, amongst others.

It really works on a particular pc referred to as a DNS server – which retains a database report of a number of public IP addresses together with their corresponding hostnames to ensure that it to resolve or translate hostnames to IP addresses upon consumer request.

Learn Additionally: four Methods to Discover Server Public IP Handle in Linux Terminal

This occurs in order that we’d not have to trouble ourselves with remembering the IP addresses of the completely different web sites we go to.

Whereas there are a number of issues we are able to focus on on DNS servers corresponding to redirection and malware assault prevention, our focus right this moment is on learn how to discover out your very personal dns server IP handle.

There are a number of methods to verify for it relying on the Working System that you simply’re operating however Linux, BSD, and Unix-like programs all share the identical technique so let’s start with them.

The right way to Discover My DNS Server IP Handle

1. To search out out your DNS Server IP handle, use the next cat command or much less command.

$ cat /and so forth/resolv.conf
OR
$ much less /and so forth/resolv.conf

2. One other method is to make use of the next grep command.

$ grep “nameserver” /and so forth/resolv.conf

nameserver 109.78.164.20

Right here, nameserver 109.78.164.20 is a reputation server IP handle in what known as the dot notation – the format that functions in your workstation use for DNS routing.

The right way to Discover My Web site DNS Server IP Handle

three. To search out out a web site DNS Server IP handle, you should utilize the next dig command.

$ dig tecmint.com

Pattern Output

; <> DiG 9.eight.2rc1-RedHat-9.eight.2-Zero.68.rc1.el6_10.1 <> tecmint.com
;; international choices: +cmd
;; Received reply:
;; ->>HEADER<<- opcode: QUERY, standing: NOERROR, id: 30412
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: Zero, ADDITIONAL: Zero

;; QUESTION SECTION:
;tecmint.com. IN A

;; ANSWER SECTION:
tecmint.com. 21 IN A 204.45.67.203
tecmint.com. 21 IN A 204.45.68.203

;; Question time: Zero msec
;; SERVER: 209.74.194.20#53(209.74.194.20)
;; WHEN: Mon Jun 24 07:25:42 2019
;; MSG SIZE rcvd: 61

Simple proper? Maybe we’ll discuss main and secondary DNS Server addresses subsequent time. Until then, be happy to share and drop your feedback/solutions within the dialogue part under.

Share

Ask Anything

‘,
enableHover: false,
enableTracking: true,
buttons: twitter: through: ‘tecmint’,
click on: perform(api, choices)
});
jQuery(‘#fb’).sharrre();
jQuery(‘#googleplus’).sharrre(
share: ,
template: ‘

whole

‘,
enableHover: false,
enableTracking: true,
urlCurl: ‘https://www.tecmint.com/wp-content/themes/tecmint/js/sharrre.php’,
click on: perform(api, choices)
api.simulateClick();
api.openPopup(‘googlePlus’);

);
jQuery(‘#linkedin’).sharrre(
share:
linkedin: true
,
template: ‘

whole

‘,
enableHover: false,
enableTracking: true,
buttons: ,
click on: perform(api, choices)
api.simulateClick();
api.openPopup(‘linkedin’);

);
// Scrollable sharrre bar, contributed by Erik Frye. Superior!
var shareContainer = jQuery(“.sharrre-container”),
header = jQuery(‘#header’),
postEntry = jQuery(‘.entry’),
$window = jQuery(window),
distanceFromTop = 20,
startSharePosition = shareContainer.offset(),
contentBottom = postEntry.offset().prime + postEntry.outerHeight(),
topOfTemplate = header.offset().prime;
getTopSpacing();
shareScroll = perform(){
if($window.width() > 719)
var scrollTop = $window.scrollTop() + topOfTemplate,
stopLocation = contentBottom – (shareContainer.outerHeight() + topSpacing);
if(scrollTop > stopLocation)
else if(scrollTop >= postEntry.offset().top-topSpacing)else if(scrollTop 1024)
topSpacing = distanceFromTop + jQuery(‘.nav-wrap’).outerHeight();
else
topSpacing = distanceFromTop;

});

Source link

Related Articles

Leave a Reply

Back to top button