DNS entries

Tom H tomh0665 at gmail.com
Tue Jul 23 17:50:05 UTC 2013


On Tue, Jul 23, 2013 at 8:17 AM, R Kimber <richardkimber at btinternet.com> wrote:
> On Sat, 20 Jul 2013 17:07:56 -0400
> Tom H wrote:
>>
>> # vi /etc/NetworkManager/system-connections/eth0
>
> I think the system is looking for a file called eth0-<uuid> rather than
> just eth0
>
> Anyway, by dint of repeatedly deleting and re-entering the details in the
> N-M ui I eventually got everything to work OK, and N-M has created a file
> called
> eth0-c3c05f82-6766-4ff0-915a-410408b5cf47
> so if this happens again, I'll try your suggestion with the eth0-<uuid>
> filename.
>
> Thanks for your help.

You're welcome.

You don't need the UUID in the filename:


[root at localhost:~]# ip a s dev eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000
    link/ether 00:50:56:20:72:74 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.242/24 brd 192.168.1.255 scope global eth1
       valid_lft forever preferred_lft forever
[root at localhost:~]#


[root at localhost:~]# cat /etc/NetworkManager/system-connections/eth1
[connection]
id=eth1
uuid=df61a040-f3b5-11e2-b93a-00505635d537
type=802-3-ethernet

[ipv6]
method=auto

[ipv4]
method=manual
dns=8.8.8.8;8.8.4.4;
address1=192.168.1.242/24,192.168.1.1
[root at localhost:~]#


[root at localhost:~]# nmcli -f connection,ipv4 c l id eth1
connection.id:                          eth1
connection.uuid:                        df61a040-f3b5-11e2-b93a-00505635d537
connection.type:                        802-3-ethernet
connection.autoconnect:                 yes
connection.timestamp:                   1374601193
connection.read-only:                   no
connection.permissions:
connection.zone:                        --
connection.master:                      --
connection.slave-type:                  --
connection.secondaries:
ipv4.method:                            manual
ipv4.dns:                               8.8.8.8, 8.8.4.4
ipv4.dns-search:
ipv4.addresses:                         { ip = 192.168.1.242/24, gw =
192.168.1.1 }
ipv4.routes:
ipv4.ignore-auto-routes:                no
ipv4.ignore-auto-dns:                   no
ipv4.dhcp-client-id:                    --
ipv4.dhcp-send-hostname:                yes
ipv4.dhcp-hostname:                     --
ipv4.never-default:                     no
ipv4.may-fail:                          yes
[root at localhost:~]#




More information about the ubuntu-users mailing list