Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. So, now for something completely different: I'm going to dig (pun not intended) into the #BIND9 source to try and determine why an incoming XFR doesn't alter the file's modification time.

So, now for something completely different: I'm going to dig (pun not intended) into the #BIND9 source to try and determine why an incoming XFR doesn't alter the file's modification time.

Scheduled Pinned Locked Moved Uncategorized
bind9
5 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jpmens@mastodon.socialJ This user is from outside of this forum
    jpmens@mastodon.socialJ This user is from outside of this forum
    jpmens@mastodon.social
    wrote last edited by
    #1

    So, now for something completely different: I'm going to dig (pun not intended) into the #BIND9 source to try and determine why an incoming XFR doesn't alter the file's modification time.

    I noticed with `ls -l`, and somebody suggested stat(1).

    The actual file contains correct SOA serial and altered RR, so the file has actually been written.

    I don't think I've ever noticed that the file's mtime doesn't change.

    Link Preview Image
    gjherbiet@mamot.frG 1 Reply Last reply
    1
    0
    • jpmens@mastodon.socialJ jpmens@mastodon.social

      So, now for something completely different: I'm going to dig (pun not intended) into the #BIND9 source to try and determine why an incoming XFR doesn't alter the file's modification time.

      I noticed with `ls -l`, and somebody suggested stat(1).

      The actual file contains correct SOA serial and altered RR, so the file has actually been written.

      I don't think I've ever noticed that the file's mtime doesn't change.

      Link Preview Image
      gjherbiet@mamot.frG This user is from outside of this forum
      gjherbiet@mamot.frG This user is from outside of this forum
      gjherbiet@mamot.fr
      wrote last edited by
      #2

      @jpmens Just guessing here but as the file actually has a Bind DB format, perhaps it’s handler remains open (as long as #Bind9 is running) and is just written to.
      What happens when Bind is stopped/restarted?
      Certainly @ondrej or anyone at @iscdotorg can most confidently reply.

      ondrej@mastodon.rfc1925.orgO 1 Reply Last reply
      0
      • gjherbiet@mamot.frG gjherbiet@mamot.fr

        @jpmens Just guessing here but as the file actually has a Bind DB format, perhaps it’s handler remains open (as long as #Bind9 is running) and is just written to.
        What happens when Bind is stopped/restarted?
        Certainly @ondrej or anyone at @iscdotorg can most confidently reply.

        ondrej@mastodon.rfc1925.orgO This user is from outside of this forum
        ondrej@mastodon.rfc1925.orgO This user is from outside of this forum
        ondrej@mastodon.rfc1925.org
        wrote last edited by
        #3

        @gjherbiet @jpmens @iscdotorg 1. create tmpfile
        2. write to tmpfile
        3. swap the tmpfile with origfile
        4. ctime/btime changes, atime/mtime stays
        5. profit

        jpmens@mastodon.socialJ 1 Reply Last reply
        0
        • ondrej@mastodon.rfc1925.orgO ondrej@mastodon.rfc1925.org

          @gjherbiet @jpmens @iscdotorg 1. create tmpfile
          2. write to tmpfile
          3. swap the tmpfile with origfile
          4. ctime/btime changes, atime/mtime stays
          5. profit

          jpmens@mastodon.socialJ This user is from outside of this forum
          jpmens@mastodon.socialJ This user is from outside of this forum
          jpmens@mastodon.social
          wrote last edited by
          #4

          @ondrej @gjherbiet @iscdotorg yeah, that’s what I thought, but I can’t profit. (top of shot shows `stat orig`)

          This is ext4 FS on debian13. Also I cannot confirm originally shown behavior with new’ish BIND either on macOS nor on debian13.

          jpmens@mastodon.socialJ 1 Reply Last reply
          0
          • jpmens@mastodon.socialJ jpmens@mastodon.social

            @ondrej @gjherbiet @iscdotorg yeah, that’s what I thought, but I can’t profit. (top of shot shows `stat orig`)

            This is ext4 FS on debian13. Also I cannot confirm originally shown behavior with new’ish BIND either on macOS nor on debian13.

            jpmens@mastodon.socialJ This user is from outside of this forum
            jpmens@mastodon.socialJ This user is from outside of this forum
            jpmens@mastodon.social
            wrote last edited by
            #5

            @ondrej @gjherbiet @iscdotorg hmm, the echo(1) is going to O_CREAT so we’re getting a new file. I’ll try tomorrow with open(2) with O_WRONLY on it.

            1 Reply Last reply
            0
            • R relay@relay.infosec.exchange shared this topic
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups