![virtual access GW2021 Скачать руководство пользователя страница 260](http://html1.mh-extra.com/html/virtual-access/gw2021/gw2021_user-manual_1030151260.webp)
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW2020 Series User Manual
Issue: 2.1
Page 260 of 423
27.2.3.1
Local host records using uci
root@VA_router:~# uci show network
……
network.@host[0]=host
network.@host[0].hostname=Device1
network.@host[0].addr=1.1.1.1
27.2.3.2
Local host records using package option
root@VA_router:~# uci export network
package network
……
config host
option hostname 'Device1'
option addr '1.1.1.1'
27.2.4
Local host records diagnostics
27.2.4.1
Hosts file
Local host records are written to the local hosts file stored at /etc/hosts. To view the
local hosts file, enter:
root@VA_router:~# cat /etc/hosts
127.0.0.1 localhost
::1 ip6-localhost ip6-loopback
1.1.1.1 Device1
27.3
PTR records
PTR records are used for reverse DNS.
The primary purpose for DNS is to map domains to IP addresses. A pointer record works
in the opposite way; it associates an IP address with a domain name.
27.3.1
Configuration packages used
Package
Sections
dhcp
domain
27.3.2
Configuring PTR records using the web interface
In the top menu, select Network -> Hostnames. The Hostnames configuration page
appears.