This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Files
  • Records
  • Records
  • Records
  • Records
  • Records
  • Records
  • Records
  • Records
  • Records
  • Recipes
  • Article (Rating System)
  • News
  • News update
  • Videos
  • Images
  • Records
  • More Options
  1. Forum
  2. News
  3. Hardware
    1. 3D-Accelerator
    2. CPU-Sockets
    3. RAM
    4. HDMI & Display Port
    5. USB
    6. Thunderbolt
    7. Connectors / Ports
  4. Timelines
    1. ICT Timeline
      1. Categories
      2. All Records
      3. ICT Timeline - The Beginnings
      4. ICT Timeline - 60s/70s
      5. ICT Timeline - 80s
      6. ICT Timeline - 90s
      7. ICT Timeline - 00s
      8. ICT Timeline - 10s
    2. OS Timeline
      1. Categories
      2. All Records
      3. DOS
      4. Windows
      5. MacOS
  5. Other
    1. Vinyl
    2. Reviews
    3. Rezepte
    4. Downloads
    5. Link-Library
    6. Parcum
      1. Parcum - Map
      2. Parcum - All Entries
      3. Parcum - Countries
      4. Parcum - Categories
    7. Restaurants, Snacks and more
    8. ISeeT Tools
    9. YouTube Videos
    10. ISeeT TV
    11. ISeeT TV on Tour
  • Login
  • Register
  • Search
  1. ISeeT Forums
  2. ICT (Information & Communication Technology)
  3. OS
  4. Windows
  5. PowerShell

Bind & DDNS & PowerShell

  • ISeeTWizard
  • 26 October 2025 at 12:35
1st Official Post
  • ISeeTWizard
    Administrator
    Reactions Received
    1
    Points
    5.036
    Posts
    161
    Files
    32
    News
    45
    Videos
    57
    Images
    185
    • 26 October 2025 at 12:35
    • Official Post
    • #1
    External Content youtu.be
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.
    Code
    Den Key erstellt Ihr euch über SSH mit folgendem Befehl
    Achtung: Domainname natürlich mit eurem ersetzen!
    
    ddns-confgen -a hmac-sha512 -z Domainname


    Example: Named.conf

    Code
    //
    // named.conf
    //
    // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
    // server as a caching only nameserver (as a localhost DNS resolver only).
    //
    // See /usr/share/doc/bind*/sample/ for example named configuration files.
    //
    
    options {
        listen-on port 53 {
                any;
            };
        // listen-on-v6 port 53 { ::1; };
        // filter-aaaa-on-v4 yes;
        directory     "/var/named";
        dump-file     "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        secroots-file    "/var/named/data/named.secroots";
        recursing-file    "/var/named/data/named.recursing";
        allow-query {
            any;
            };
        allow-transfer {
            EDITED;
            };
        notify yes;
        also-notify {
            EDITED;
            };
        /* 
         - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
         - If you are building a RECURSIVE (caching) DNS server, you need to enable 
           recursion. 
         - If your recursive DNS server has a public IP address, you MUST enable access 
           control to limit queries to your legitimate users. Failing to do so will
           cause your server to become part of large scale DNS amplification 
           attacks. Implementing BCP38 within your network would greatly
           reduce such attack surface 
        */
        recursion yes;
    
        dnssec-validation auto;
    
        managed-keys-directory "/var/named/dynamic";
        geoip-directory "/usr/share/GeoIP";
    
        pid-file "/run/named/named.pid";
        session-keyfile "/run/named/session.key";
    
        /*  https://fedoraproject.org/wiki/Changes/CryptoPolicy  */
        include "/etc/crypto-policies/back-ends/bind.config";
        forwarders {
            EDITED;
            8.8.8.8;
            8.8.4.4;
            };
        // dnssec-enable yes;
        // dnssec-enable yes;
    };
    
    logging {
        channel default_debug {
            file "/var/log/named.run";
            };
    };
    
    zone "." IN {
        type hint;
        file "named.ca";
    };
    
    include "/etc/named.rfc1912.zones";
    include "/etc/named.root.key";
    
    key rndc-key {
        algorithm hmac-sha256;
        secret "EDITED";
        };
    
    key "ddns-key.dyndns.datateam.center" {
            algorithm hmac-sha512;
            secret "Euer generierter Key";
    };
    
    controls {
        inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { rndc-key; };
    };
    
    server EDITED {
    };
    
    zone "datateam.center" {
        type master;
        file "/var/named/datateam.center.hosts";
        also-notify {
            EDITED;
            };
        notify yes;
        update-policy {
              grant ddns-key.dyndns.datateam.center zonesub ANY;
        };
        allow-transfer {
            127.0.0.1;
            EDITED;
            };
    };
    Display More

    I edited some things and replaced them with EDITED - so be careful

    What is actually just added is the following:

    Code
    key "ddns-key.dyndns.datateam.center" {
            algorithm hmac-sha512;
            secret "Euer generierter Key";
    };
    
    Unter der Zone kommt folgendes:    
        update-policy {
              grant ddns-key.dyndns.datateam.center zonesub ANY;
        };

    You will receive exactly what is entered when you generate your key.

    Example: Key File

    Code
    key "ddns-key.dyndns.datateam.center" {
            algorithm hmac-sha512;
            secret "Euer generierter Key";
    };

    PowerShell Script

    PowerShell
    <#
    Get full info:
    $providerinfo = Invoke-RestMethod  http://ipinfo.io/json 
    #>
    
    Param (
        [String]$KeyPath = "C:\dyndns\dyndns.datateam.center.key",
        [String]$NSScriptPath = "c:\dyndns\nsupdate.txt",
        [String]$NSUpdatePath = "C:\dyndns"
    )
    
    begin {
        #Gather status of system IP Addresses, DNS Servers, and domains
    $myip = (Invoke-WebRequest -uri "https://api.ipify.org/").Content
    $servername = "ns1.datateam.center"
    $dnszone = "datateam.center"
    $hostname = "holodeck.$dnszone"
    
    }
    
    process {
                        $script = "update delete $hostname
    update add $hostname. 60 A $myip
    
    "
            }
    
    end {
        $script | Out-File -FilePath $NSScriptPath -Encoding "ascii" -Force
        Start-Process -FilePath (Join-Path -Path $NSUpdatePath -ChildPath "nsupdate.exe") -ArgumentList "-d -k `"$KeyPath`" `"$NSScriptPath`"" -Wait -NoNewWindow -RedirectStandardError "c:\dyndns\nsstderr.log" -RedirectStandardOutput "c:\dyndns\nsstdout.log" -WorkingDirectory $NSUpdatePath | Out-Null
        
    }
    Display More

    Here I created the dyndns directory on C: on a Windows computer.

    Below I copied the DLL files and nsupdate.exe from the ZIP file from the Bind DNS server.

    dyndns.datateam.center.key is the file with the generated key. You can name it whatever you want, you just have to adapt the PowerShell file 🙂

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login

Latest News

  • Apple unveils groundbreaking MacBook Pro with PROLED XDR Display and Touch for the first time on Mac

    ISeeTWizard 28 October 2026 at 19:14
  • Apple unveils new iMac with M6, delivering a major boost in performance and AI capabilities

    ISeeTWizard 27 October 2026 at 14:27

Did you know…?

“The simple things are also the most extraordinary things, and only the wise can see them.”

Paulo Coelho

“Life is made of ever so many partings welded together.”

Charles Dickens

“Before anything else, preparation is the key to success.”

Alexander Graham Bell

“You only live once, but if you do it right, once is enough.”

Mae West

“Keep your face towards the sunshine and shadows will fall behind you.”

Walt Whitman

You cannot change what you refuse to confront.

“When you have a dream, you’ve got to grab it and never let go.”

Carol Burnett

“Be yourself; everyone else is already taken.”

Oscar Wilde

“For me, becoming isn’t about arriving somewhere or achieving a certain aim. I see it instead as forward motion, a means of evolving, a way to reach continuously toward a better self. The journey doesn’t end.”

Michelle Obama

“Dreams do not come true just because you dream them. It’s hard work that makes things happen. It’s hard work that creates change.”

Shonda Rhimes

“If you live long enough, you’ll make mistakes. But if you learn from them, you’ll be a better person.”

Bill Clinton

“Whatever we are, whatever we make of ourselves, is all we will ever have—and that, in its profound simplicity, is the meaning of life.”

Philip Appleman

“You don’t always need a plan. Sometimes you just need to breathe, trust, let go and see what happens.”

Mandy Hale

“The fear of death follows from the fear of life. A man who lives fully is prepared to die at any time.”

Mark Twain

“It is during our darkest moments that we must focus to see the light.”

Aristotle

“You can be everything. You can be the infinite amount of things that people are.”

Kesha

“Life isn’t about finding yourself. Life is about creating yourself.”

George Bernard Shaw

“We must let go of the life we have planned, so as to accept the one that is waiting for us.”

Joseph Campbell

“Everything you can imagine is real.”

Pablo Picasso

“Coming together is a beginning; keeping together is progress; working together is success.”

Henry Ford

“It’s amazing how a little tomorrow can make up for a whole lot of yesterday.”

John Guare

“Living might mean taking chances, but they’re worth taking.”

Lee Ann Womack

“I’m not going to continue knocking that old door that doesn’t open for me. I’m going to create my own door and walk through that.”

Ava DuVernay

“If you don’t like the road you’re walking, start paving another one.”

Dolly Parton

“There is no passion to be found playing small—in settling for a life that is less than the one you are capable of living.”

Nelson Mandela

“Next time, ask ‘What’s the worst that will happen?’ Then push yourself a little further than you dare.”

Audre Lorde

“Nothing is impossible. The word itself says ‘I’m possible!’”

Audrey Hepburn

“Dreaming, after all, is a form of planning.”

Gloria Steinem

“It is never too late to be what you might have been.”

George Elliot

“If you don’t have any shadows, you’re not in the light.”

Lady Gaga

“Do one thing every day that scares you.”

Eleanor Roosevelt

“Dream big and dare to fail.”

Norman Vaughan

“Get busy living or get busy dying.”

Stephen King

“No need to hurry. No need to sparkle. No need to be anybody but oneself.”

Virginia Woolf

“Ambition is the path to success. Persistence is the vehicle you arrive in.”

Bill Bradley

“All dreams are within reach. All you have to do is keep moving towards them.”

Viola Davis

“There’s love enough in this world for everybody, if people will just look.”

Kurt Vonnegut

“To succeed in life, you need three things: a wishbone, a backbone, and a funnybone.”

Reba McEntire

“Keep smiling, because life is a beautiful thing and there’s so much to smile about.”

Marilyn Monroe

“Life is what happens to you when you are busy making other plans.”

John Lennon

“It is better to fail in originality than to succeed in imitation.”

Herman Melville

“Once you face your fear, nothing is ever as hard as you think.”

Olivia Newton-John

“Always go with your passions. Never ask yourself if it’s realistic or not.”

Deepak Chopra

“When I let go of what I am, I become what I might be.”

Lao Tzu

“Be sure you put your feet in the right place, then stand firm.”

Abraham Lincoln

“We are here to add what we can to life, not to get what we can from life.”

William Osler

“It does not matter how slowly you go, as long as you do not stop.”

Confucius

“Life has no limitations, except the ones you make.”

Les Brown

“There are no regrets in life. Just lessons.”

Jennifer Aniston

“Always do your best. What you plant now, you will harvest later.”

Og Mandino

“Be where you are; otherwise you will miss your life.”

Buddha

“One of the deep secrets of life is that all that is really worth doing is what we do for others.”

Lewis Carroll

“Yesterday is but today’s memory and tomorrow is today’s dream.”

Khalil Gibran

“Life is a daring adventure or it is nothing at all.”

Helen Keller

“Find out who you are and do it on purpose.”

Dolly Parton

“The future belongs to those who believe in the beauty of their dreams.”

Eleanor Roosevelt

“The biggest adventure you can take is to live the life of your dreams.”

Oprah Winfrey

“Some people want it to happen, some wish it would happen, others make it happen.”

Michael Jordan

“I may not have gone where I intended to go, but I think I have ended up where I needed to be.”

Douglas Adams

“We have to dare to be ourselves, however frightening or strange that self may prove to be.”

May Sarton

“There are so many great things in life; why dwell on negativity?”

Zendaya

“You can’t help what you feel, but you can help how you behave.”

Margaret Atwood

“You have to believe in yourself when no one else does.”

Serena Williams

“Live in the sunshine, swim the sea, drink the wild air.”

Ralph Waldo Emerson

“The world you desire can be won. It exists... it is real... it is possible... it’s yours.”

Ayn Rand

“For the great doesn’t happen through impulse alone, and is a succession of little things that are brought together.”

Vincent Van Gogh

“My wish for you is that you continue. Continue to be who you are, to astonish a mean world with your acts of kindness.”

Maya Angelou

“Just when you think it can’t get any worse, it can. And just when you think it can’t get any better, it can.”

Nicholas Sparks

“Life is very interesting…in the end, some of your greatest pains become your greatest strengths.”

Drew Barrymore

“Don’t judge each day by the harvest you reap but by the seeds that you plant.”

Robert Louis Stevenson

“Don’t worry about failure, you only have to be right once.”

Drew Houston

“There is no perfection, only life.”

Milan Kundera

“Spread love everywhere you go. Let no one ever come without leaving happier.”

Mother Teresa

“The new dawn blooms as we free it. For there is always light if only we’re brave enough to see it, if only we’re brave enough to be it.”

Amanda Gorman

“Don’t take yourself too seriously. Know when to laugh at yourself, and find a way to laugh at obstacles that inevitably present themselves.”

Halle Bailey

“If you have knowledge, let others light their candles in it.”

Margaret Fuller

“Life is like riding a bicycle. To keep your balance, you must keep moving.”

Albert Einstein

“Never let the fear of striking out keep you from playing the game.”

Babe Ruth

“It is better to be hated for what you are than to be loved for what you are not.”

Andre Gide

“The great courageous act that we must all do is to have the courage to step out of our history and past so that we can live our dreams.”

Oprah Winfrey

“We make a living by what we get, but we make a life by what we give.”

Winston Churchill

“In three words I can sum up everything I’ve learned about life: It goes on.”

Robert Frost

“I believe that if you’ll just stand up and go, life will open up for you. Something just motivates you to keep moving.”

Tina Turner

“You will face many defeats in life, but never let yourself be defeated.”

Maya Angelou

“Let us make our future now, and let us make our dreams tomorrow’s reality.”

Malala Yousafzai

“The future is not something we enter. The future is something we create.”

Leonard I. Sweet

“You may not control all the events that happen to you, but you can decide not to be reduced by them.”

Maya Angelou

“The purpose of life is to live it, to taste experience to the utmost, to reach out eagerly and without fear for newer and richer experience.”

Eleanor Roosevelt

“Failure is a great teacher and, if you are open to it, every mistake has a lesson to offer.”

Oprah Winfrey

“Be persistent and never give up hope.”

George Lucas

“I’m not going to continue knocking on that old door that doesn’t open for me. I’m going to create my own door and walk through that.”

W.P. Kinsella

“The future belongs to those who prepare for it today.”

Malcolm X

“We pass through this world but once.”

Stephen Jay Gould

“Always remember that you are absolutely unique. Just like everyone else.”

Margaret Mead

“And when you want something, all the universe conspires in helping you achieve it.”

Paulo Coelho

“The art of life is to know how to enjoy a little and to endure very much.”

William Hazlitt

“Success is stumbling from failure to failure with no loss of enthusiasm.”

Winston Churchill

“Life does not have to be perfect to be wonderful.”

Annette Funicello

“The only thing we have to fear is fear itself.”

Franklin D. Roosevelt

“Tomorrow is a new day. You shall begin it serenely and with too high a spirit to be encumbered with your old nonsense.”

Ralph Waldo Emerson

“Good friends, good books, and a sleepy conscience: This is the ideal life.”

Mark Twain

Visits

  • 20 Today
  • 56 Yesterday
  • 359 This Week
  • 684 Last Week
  • 3.287 This Month
  • 12.842 Last Month
  • 63.315 This Year
  • 0 Last Year
  • Ø 260,56 per day
  • 63.315 Total

Last updated: 27 November 2026 at 08:12

  1. Cookie Policy
  2. Privacy Policy
  3. Contact
  4. Legal Notice
  1. IT-Tools
  2. Link-Library
  3. Downloads
  4. Restaurants, Snacks and more
Powered by WoltLab Suite™
Style: Ambience by cls-design
Stylename
Ambience
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design