Linux DNS Resolution Flashcards

1
Q

/etc/hosts

A

Text file containing local hosts entry to loop back address in ipv4 or v6. Can also be used to map other hostname to IP address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

/etc/hostname

A

Used for system hostname. Hostnamectl file write system hostname to file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

/etc/resolv.conf

A

IP address of DNS name servers host will use for name resolution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

/etc/nsswitch.conf

A

Among others, used to determine order of name resolution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

host

A

Resolve down names to IP address. When querying outside, obtain email resolution with numbers for priority (mail exchange records.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

dig

A

Query’s DNS servers for specific DNS records. @ to reference specific DNS server for website.
-t: DNS record type. Ex: MX for mail server, A for address record, any for any records possible.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

getent

A

Directly queries /etc/nsswitch.conf file and database locations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly