0

I am in a private network having 192.168.1.0/24 . I have a wireless router, i am providing wifi hotspot to my users with wireless router and i have 100 users in the network. I want to provide name to my webserver's ip. for that I selected bind. But i am not connected to any ISP's(i haven't any internet facility) so what ip i have to give in the forward section of named.conf.options.

and what configuration i have to put in db.domain file i don't know about SOA? my webserver's ip is 192.168.1.29.

ashok
  • 261
  • 4
  • 16

1 Answers1

0

In the forward section you can keep your DNS server IP, or just set some Generic ISP IP such as 4.4.4.4 or 8.8.8.8. Indeed the forwards will not affect your internal DNS this is used when caching to the outer domains.

In order to understand bind9 with ubuntu it's better to read more about before starting your configuration.

you can read the official documentation from here. Another great tutorial can get from here

Please refer to this link How do I do a complete BIND9 DNS Server Configuration with a hostname? you can find your needs in detail

Maythux
  • 82,867
  • 54
  • 239
  • 271
  • actually i provided the wifi hotspot with netgear router and i am running only one server i haven't any internet connections so how i can give forwarding servers as 8.8.8.8 – ashok May 29 '15 at 07:33
  • It's fake this will not be used if you don't have external connection. this is used for caching when connecting to external, but since you are not using Internet this will not affect your system, It's same if you just put your IP or any other IP – Maythux May 29 '15 at 07:35
  • i want use webserver as a dns server also because i have only one server. – ashok May 29 '15 at 07:35
  • @ashok it's the same – Maythux May 29 '15 at 07:36
  • my whole network is 192.168.1.0/24 my server getting the dhcp ip from the hotspot which is created in router. please guide me the configuration for dns server with bind. please. – ashok May 29 '15 at 07:38
  • read the links i provided you above – Maythux May 29 '15 at 07:39
  • but in the digitalocean site it's saying primary dns,secondary dns i am confused with that. – ashok May 29 '15 at 07:40
  • forget about secondary just work for the primary – Maythux May 29 '15 at 07:41
  • then what about the SOA in the place of SOA he given the secondary dns. something like admin.nyc3.example.com. – ashok May 29 '15 at 07:42
  • don't write it, everything that deals with secondary can just emit it – Maythux May 29 '15 at 07:44
  • Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/24248/discussion-between-ashok-and-maythux). – ashok May 29 '15 at 07:46