Jump to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Standard Zonefile hinter NATed-IP

Featured Replies

Heyho,

ich habe einen Server mit einer NATed-IP bekommen, die hab ich auch in "IPs & Ports" eingetragen und alle Dienste sind so auch erreichbar.
Ich möchte nun bind verwenden, um Zonefiles zu erstellen - klappt auch, jedoch wird immer ein Standard-Zonefile mit solchen Einträgen angelegt:

@	604800	IN	A	192.168.1.4
www	604800	IN	A	192.168.1.4

Kann ich das Standard-Zonefile irgendwo beeinflussen? Ich hab leider keine Möglichkeit gefunden, um Froxlor die eigentliche public IP mitzuteilen.

Ich kann die A-Einträge natürlich selbst manuell setzen, aber das ist ja irgendwie unschön.

froxlor funktioniert zwar grundsätzlich hinter NAT'ed IPs, ist aber generell nicht dafür ausgelegt. Man müsste für jede Domain ein zweites Set IPs pflegen, die nat'ed ips für web und die externen für dns-dienste - ist aktuell so nicht vorgesehen, sorry.

Eine Möglichkeit wäre ggfls das dns reload command anzupassen auf ein custom script, in diesem in allen zonen die internen IPs mit den externen ersetzen und dann erst den dienst neustarten, nicht super schön, aber machbar

  • Author

Danke, darauf war ich nicht gekommen :)

Hab eine /usr/local/bin/reload-bind9 mit diesem Inhalt angelegt:

#!/bin/bash

ZONE_DIR="/etc/bind/domains"
INT_IP="192.168.1.4"
EXT_IP="111.111.111.111"

if [ ! -d "$ZONE_DIR" ]; then
  echo "Directory $ZONE_DIR does not exist. Exiting."
  exit 1
fi

for file in "$ZONE_DIR"/*.zone; do
  if [ -f "$file" ]; then
    echo "Updating $file..."
    sed -i "s/$INT_IP/$EXT_IP/g" "$file"
  else
    echo "No .zone files found in $ZONE_DIR."
  fi
done

if service bind9 reload; then
  echo "bind9 service reloaded successfully."
else
  echo "Failed to reload bind9 service. Please check the configuration."
  exit 1
fi

Und dann einfach "reload-bind9" als Command angegeben. Das Zonefile-Preview zeigt zwar so immer noch die interne IP an, aber das ist ja zu verschmerzen.
Problem gelöst! :D

Create an account or sign in to comment

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.