Results 1 to 10 of 10

Thread: DNS server Log records

  1. #1
    Join Date
    Jun 2011
    Beans
    87
    Distro
    Ubuntu 12.04 Precise Pangolin

    DNS server Log records

    hi,
    does DNS server save log records of users that connect to internet.
    Actualy what i want to do is next;

    i have 30 PC's every one on different location, if i setup an DNS server and redirect all PC's dns to this server can i see logs of connected users who enter which site? and can i prohibite access to some sites???
    thank you for your help ...
    Security - a Journey not a Destination

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: DNS server Log records

    DNS servers don't log queries; any active server would fill up the disk pretty quickly. You could add an iptables rules to the server that logs UDP traffic on port 53, which is the port to which queries are sent.

    If you want to control access to web sites, you're better off learning how to build a transparent Squid proxy and use its "access control lists." If, however, the clients are all over the Internet, each connected to its own ISP, this isn't going to work for you. You need to be able to force the clients to use the proxy, usually by making it their default gateway via DHCP.
    Last edited by SeijiSensei; April 10th, 2012 at 03:36 PM.

  3. #3
    Join Date
    Jun 2011
    Beans
    87
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DNS server Log records

    Quote Originally Posted by SeijiSensei View Post
    DNS servers don't log queries; any active server would fill up the disk pretty quickly. You could add an iptables rules to the server that logs UDP traffic on port 53, which is the port to which queries are sent.

    If you want to control access to web sites, you're better off learning how to build a transparent Squid proxy and use its "access control lists." If, however, the clients are all over the Internet, each connected to its own ISP, this isn't going to work for you. You need to be able to force the clients to use the proxy, usually by making it their default gateway via DHCP.
    SeijiSensei Thank you for your replay.
    Yes users/clients are all over the internet. I want to see where users go on internet and sometimes to prohibite access to some sites.

    Does anyone know is this posible with firewall???
    i dont know where to start
    Security - a Journey not a Destination

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: DNS server Log records

    If you have no control over the clients via some type of centralized service like DHCP, I don't see any hope of this, no. How are you planning on enforcing them to all use your DNS server in the first place?

  5. #5
    Join Date
    Jun 2011
    Beans
    87
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DNS server Log records

    All PC's belongs to my company branch offices, so i make all setting on PC's.
    As i said i want to see what employees do on internet (does they work or they are on facebook or something else) and to prohibite access to some sites. but i want to do that from one place. When i make some changes i want to effect everyone.

    Thank you for your help again.
    Security - a Journey not a Destination

  6. #6
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: DNS server Log records

    You could configure their browsers to use a Squid proxy as I mentioned earlier. Of course, any knowledgeable users would know how to disable that right away, or they could just install another browser that doesn't have the proxy set.

    What you propose to do has to rely on naive users who can't figure out how to change their DNS or proxy settings. Are you managing all the computers with something like Active Directory, or do you simply connect remotely to each one and configure it to your liking? If you can't lock the settings, then any competent user will be able to end-run your controls.

    How are the offices themselves connected to the Internet? Do you manage the egress routers? You might be able to establish controls that way.

  7. #7
    Join Date
    Jun 2011
    Beans
    87
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DNS server Log records

    i have remote acces to all computers, also i have physical access to.
    i use regedit to disable dns changing.
    if you know any more effective i will be glad if you share it.
    as i said i want to do this but i dont know how and where to start
    Security - a Journey not a Destination

  8. #8
    Join Date
    Jun 2011
    Beans
    87
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DNS server Log records

    mod can you delete this post.... this was hijacked.
    Security - a Journey not a Destination

  9. #9
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: DNS server Log records

    If you can enforce a web proxy via regedit, then I'd suggest using that with Squid on your end. I haven't used Windows for a very long time, so I don't know what you can and cannot control via the Registry.

  10. #10
    Join Date
    Jun 2011
    Beans
    87
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DNS server Log records

    Ok, thank you a lot.
    i will try it in a few days.
    Security - a Journey not a Destination

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •