Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
linux_wiki:configure_networking_and_hostname_resolution_statically_or_dynamically [2018/03/18 16:10] billdozor [Hostname Configuration] |
linux_wiki:configure_networking_and_hostname_resolution_statically_or_dynamically [2018/03/18 16:13] billdozor [Hostname Configuration] |
||
---|---|---|---|
Line 201: | Line 201: | ||
\\ | \\ | ||
- | Add DNS for eth0 with nmcli or with config file | + | **Add DNS** (not replace) |
- | <code bash> | + | * Using nmcli<code bash> |
nmcli con show | nmcli con show | ||
(observe NAME field) | (observe NAME field) | ||
- | nmcli con mod " | + | nmcli con mod " |
- | </ | + | * Edit files directly<code bash> |
- | OR | + | |
- | <code bash> | + | |
vim / | vim / | ||
- | DNS1=8.8.8.8 | + | DNS1=8.8.8.8</ |
- | </ | + | * Apply changes: restart NetworkManager or issue nmcli command |
- | * Both methods require the NetworkManager service to be restarted for changes | + | * nmcli method< |
+ | * Service restart< | ||
---- | ---- | ||